[php-src] Issue #7883: PHP CLI segafult when INI file is not readable

From: Date: Mon, 17 Jan 2022 09:01:23 +0000
Subject: [php-src] Issue #7883: PHP CLI segafult when INI file is not readable
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239052@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7883 Comment Author: remicollet PHP 8.0 is not affected. ``` $ gdb php81 (gdb) run -i Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0x00007ffff76e4c1b in _IO_new_fclose (fp=0x0) at iofclose.c:48 #1 0x0000555555859a60 in zend_file_handle_dtor (fh=0x7fffffffb3e0) at /usr/src/debug/php81-php-8.1.2~RC1-1.fc35.remi.x86_64/Zend/zend_stream.c:217 #2 0x000055555585a096 in zend_destroy_file_handle (file_handle=<optimized out>) at /usr/src/debug/php81-php-8.1.2~RC1-1.fc35.remi.x86_64/Zend/zend_stream.c:273 #3 0x000055555578996c in php_init_config () at /usr/src/debug/php81-php-8.1.2~RC1-1.fc35.remi.x86_64/main/php_ini.c:699 #4 0x0000555555782abc in php_module_startup (sf=<optimized out>, additional_modules=0x0, num_additional_modules=<optimized out>) at /usr/src/debug/php81-php-8.1.2~RC1-1.fc35.remi.x86_64/main/main.c:2191 #5 0x00005555558ce641 in php_cli_startup (sapi_module=<optimized out>) at /usr/src/debug/php81-php-8.1.2~RC1-1.fc35.remi.x86_64/sapi/cli/php_cli.c:409 #6 0x000055555563a9b9 in main (argc=2, argv=0x555555e10c50) at /usr/src/debug/php81-php-8.1.2~RC1-1.fc35.remi.x86_64/sapi/cli/php_cli.c:1334 ```

« previous php.bugs (#239052) next »