#45973 [Opn->Fbk]: segfault when setting include_path to concat. of non-defined ${include_path}
| From: | jani@php.net | Date: | Thu, 04 Sep 2008 20:49:17 +0000 |
| Subject: | #45973 [Opn->Fbk]: segfault when setting include_path to concat. of non-defined ${include_path} | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128690@lists.php.net to get a copy of this message | ||
ID: 45973
Updated by: jani@php.net
Reported By: olivier dot berger at it-sudparis dot eu
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Debian lenny
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.3-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.3-win32-installer-latest.msi
Please test with 5.3, the ini scanner/parser has been rewritten in it
and I'd like to know if this happens there too. (can't test myself right
now...)
Previous Comments:
------------------------------------------------------------------------
[2008-09-02 13:00:01] olivier dot berger at it-sudparis dot eu
Description:
------------
If include_path wasn't set already, setting it to some concatenation of
${include_path} causes a segfault.
Seems different from #37002, AFAICT
More details in Debian bug :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497453
Reproduce code:
---------------
For instance, if /etc/php5/apache2/php.ini doesn't contain any
include_path definition, like is by default in Debian :
; UNIX: "/path1:/path2"
;include_path = ".:/usr/share/php"
then setting the following in for instance /etc/php5/conf.d/zend.ini :
[Zend]
include_path = ${include_path}
":/usr/share/php/libzend-framework-php"
leads to segmentation fault.
Expected result:
----------------
I guess referencing variables no yet explicitely set, but having
default values should return their default value.
Uncommenting the default include_path in /etc/php5/apache2/php.ini
allows it to work.
Actual result:
--------------
Apache segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45973&edit=1