-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP CLI segfault when INI file is not readable #7883
Labels
Comments
Introduced by c732ab4#diff-3a12521d1fb28a95d8894ccdd98d1ec238b722eb45e8849624b52bd3c276480e Crashes through Line 699 in 90b7bde
|
PHP 8.0 is not affected.
|
Related to c732ab400af
In previous version, fh was not freed, it is not freed, even if null. |
remicollet
added a commit
to remicollet/php-src
that referenced
this issue
Jan 17, 2022
PR #7956 should fix this one |
remicollet
changed the title
PHP CLI segafult when INI file is not readable
PHP CLI segfault when INI file is not readable
Jan 18, 2022
remicollet
added a commit
that referenced
this issue
Jan 18, 2022
* PHP-8.1: Fix GH-7883 don't close not open file handle don't create a stream if file is not open
Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Redirected there by oerdnj/deb.sury.org#1703
When mods-available INI file, e.g.
/etc/php/8.1/mods-available/opcache.ini
, has no sufficient permission to read by user, PHP CLI ends by segmentation fault.I've removed INI file permission by mistake and had no glue what happend to CLI scripts.
Steps to reproduce the behavior:
Expected behavior
Not segafult. Probably, extension should not be loaded, or emit warning.
Distribution
Linux alfa-01 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
deb https://packages.sury.org/php/ buster main
Last lines of strace:
PHP Version
PHP 8.1.1
Operating System
Debian 10.11
The text was updated successfully, but these errors were encountered: