php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25682 PHP CLI crashes in case php.ini exists
Submitted: 2003-09-29 00:34 UTC Modified: 2003-09-29 10:20 UTC
From: hotta at net-newbie dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2003-09-29 (dev) OS: Vine Linux(dev)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hotta at net-newbie dot com
New email:
PHP Version: OS:

 

 [2003-09-29 00:34 UTC] hotta at net-newbie dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-29 00:37 UTC] hotta at net-newbie dot com
my envs are below:
$ rpm -qa|grep -e automake -e autoconf -e libtool \
 -e bison -e gcc-3 -e glibc-2
glibc-2.3.2-57vl4
libgcc-3.2.3-0vl5
gcc-3.2.3-0vl5
libtool-libs-1.5-5vl1
autoconf-2.57-3vl1
bison-1.875-3vl1
automake-1.7.6-1vl1
libtool-1.5-5vl1
 [2003-09-29 05:38 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip
 [2003-09-29 05:38 UTC] sniper@php.net
And do not run buildconf!!

 [2003-09-29 05:39 UTC] sniper@php.net
Actually bogus, your bison version is broken.
(only supported & working version is 1.28)

 [2003-09-29 10:20 UTC] hotta at net-newbie dot com
i've downgraded bison to 1.28 and it worked fine.
thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 12 04:01:28 2024 UTC