|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-29 00:37 UTC] hotta at net-newbie dot com
[2003-09-29 05:38 UTC] sniper@php.net
[2003-09-29 05:38 UTC] sniper@php.net
[2003-09-29 05:39 UTC] sniper@php.net
[2003-09-29 10:20 UTC] hotta at net-newbie dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Description: ------------ if php.ini file exists PHP CLI crashes on startup even though it is a 0-byte file. Reproduce code: --------------- $ ./buildconf $ ./configure --disable-cgi --enable-debug $ make $ sudo make install $ php -v Expected result: ---------------- it shows version info. Actual result: -------------- $ php Segmentation fault (core dumped) $ gdb php core.16001 #0 0x08179264 in ini_parse () at Zend/zend_ini_parser.c:1040 1040 goto yyoverflowlab; (gdb)bt #0 0x08179264 in ini_parse () at Zend/zend_ini_parser.c:1040 #1 0x081790f0 in zend_parse_ini_file (fh=0xbffff700, unbuffered_errors=1 '\001', ini_parser_cb=0x815abb7 <php_config_ini_parser_cb>, arg=0x820f800) at zend_ini_parser.y:156 #2 0x0815b2d4 in php_init_config () at /usr/local/src/php-5.0.0/main/php_ini.c:420 #3 0x08156bc4 in php_module_startup (sf=0x820e060, additional_modules=0x0, num_additional_modules=0) at /usr/local/src/php-5.0.0/main/main.c:1390 #4 0x081b7248 in main (argc=1, argv=0xbffff9c4) at /usr/local/src/php-5.0.0/sapi/cli/php_cli.c:593 #5 0x40204015 in __libc_start_main (main=0x81b70da <main>, argc=1, ubp_av=0xbffff9c4, init=0x81b89dc <__libc_csu_init>, fini=0x81b8a28 <__libc_csu_fini>, rtld_fini=0x40013020 <_rtld_local>, stack_end=0xbfffbad0) at ../sysdeps/generic/libc-start.c:225