ID:               49677
 User updated by:  crrodriguez at opensuse dot org
 Reported By:      crrodriguez at opensuse dot org
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      5.3SVN-2009-09-25 (SVN)
 New Comment:

No crash with CGI or CLI, and extension_dir *is* set in php.ini.


Previous Comments:
------------------------------------------------------------------------

[2009-09-26 11:56:09] j...@php.net

I'm also assuming it does not crash with CGI or CLI binaries? :)

------------------------------------------------------------------------

[2009-09-26 11:55:45] j...@php.net

I would guess it crashes with any option name and value when the ini 
setting is not set. f.e.

foobar = ${thisdoesnotexist}

should also crash..?

------------------------------------------------------------------------

[2009-09-25 22:39:14] crrodriguez at opensuse dot org

Description:
------------
The ini parser crashes with when a directive like

zend_extension = ${extension_dir}"/xcache.so"


is found in the configuration file, this has worked in all versions
since 5.1 but fails now.

Reproduce code:
---------------
zend_extension = ${extension_dir}"/foo.so" in php.ini


This only crashes at startup in apache 2

Expected result:
----------------
No crash

Actual result:
--------------
gdb) bt
#0  0x00007ffff2c555e0 in php_apache_sapi_getenv (name=0x7ffff83777f0
"extension_dir", name_len=<value optimized out>)
    at
/usr/src/debug/php-5.3.1+svn20090925/sapi/apache2handler/sapi_apache2.c:242
#1  0x00007ffff2b7f25a in sapi_getenv (name=0x7ffff83777f0
"extension_dir", name_len=140737357772784)
    at /usr/src/debug/php-5.3.1+svn20090925/main/SAPI.c:938
#2  0x00007ffff2ba5f9b in ini_parse () at
/usr/src/debug/php-5.3.1+svn20090925/Zend/zend_ini_parser.y:148
#3  0x00007ffff2ba62f8 in zend_parse_ini_file (fh=0x7fffffffcec0,
unbuffered_errors=1 '\001', scanner_mode=<value optimized out>,
    ini_parser_cb=<value optimized out>, arg=<value optimized out>) at
/usr/src/debug/php-5.3.1+svn20090925/Zend/zend_ini_parser.y:206
#4  0x00007ffff2b7e722 in php_init_config () at
/usr/src/debug/php-5.3.1+svn20090925/main/php_ini.c:650
#5  0x00007ffff2b76ac5 in php_module_startup (sf=<value optimized out>,
additional_modules=0x7ffff2f00dc0, num_additional_modules=1)
    at /usr/src/debug/php-5.3.1+svn20090925/main/main.c:1926
#6  0x00007ffff2c559a5 in php_apache2_startup
(sapi_module=0x7ffff83777f0) at
/usr/src/debug/php-5.3.1+svn20090925/sapi/apache2handler/sapi_apache2.c:328
#7  0x00007ffff2c564e0 in php_apache_server_startup
(pconf=0x7ffff820e138, plog=<value optimized out>, ptemp=<value
optimized out>, s=0x7ffff8213850)
    at
/usr/src/debug/php-5.3.1+svn20090925/sapi/apache2handler/sapi_apache2.c:437
#8  0x00007ffff7fd9bf4 in ap_run_post_config () from
/usr/sbin/httpd2-prefork
#9  0x00007ffff7fc5bbf in main () from /usr/sbin/httpd2-prefork



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49677&edit=1

Reply via email to