From: hotta at net-newbie dot com Operating system: Vine Linux(dev) PHP version: 5CVS-2003-09-29 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: PHP CLI crashes in case php.ini exists
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 -- Edit bug report at http://bugs.php.net/?id=25682&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25682&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25682&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25682&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25682&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25682&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25682&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25682&r=support Expected behavior: http://bugs.php.net/fix.php?id=25682&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25682&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25682&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25682&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25682&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25682&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25682&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25682&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25682&r=float