|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45973 Setting include_path with non-defined ${include_path} crashes
Submitted: 2008-09-02 13:00 UTC Modified: 2008-10-28 22:14 UTC
Avg. Score:4.3 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: olivier dot berger at it-sudparis dot eu Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.2.6 OS: Debian lenny
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
20 - 3 = ?
Subscribe to this entry?

 [2008-09-02 13:00 UTC] olivier dot berger at it-sudparis dot eu
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 :

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 :
 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 19:23 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-10-27 13:10 UTC] olivier dot berger at it-sudparis dot eu

Sorry, but I'm afraid I won't have time to test that at the moment.

Should be testable by anyone interested still.

Best regards,
 [2008-10-28 22:14 UTC]
Ignored until requested feedback is given.
 [2009-09-25 18:13 UTC] tuomaksen dot spammiposti at gmail dot com
Noticed this bug on my system (PHP-5.2.10/Linux), seems only to exist in apaches mod_php. Having include_path = ${include_path} ":/usr/share/php/libzend-framework-php" in zend.ini but no setting in php.ini causes apache not to start at all. 

This does not seem to affect php-cli.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 08:03:35 2021 UTC