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

 ID:                 53121
 User updated by:    gop...@php.net
 Reported by:        gop...@php.net
 Summary:            Include path cannot be appended to for default
                     include_path
 Status:             Open
 Type:               Bug
 Package:            *Configuration Issues
 Operating System:   ubuntu
 PHP Version:        5.3SVN-2010-10-20 (snap)
 Block user comment: N

 New Comment:

The append works just fine when an explicit include_path is provided in
a php.ini file.



This is breaking my php.d/ directory right now.


Previous Comments:
------------------------------------------------------------------------
[2010-10-20 21:59:46] gop...@php.net

Description:
------------
The default php include_path cannot be appended to by using
${include_path}



I have a machine which has no include_path set in php.ini, the system
picks

up the default include_path path from the build-defs.h during the
build.



gop...@delta:~$ /opt/php53/bin/php -v

PHP 5.3.4-dev (cli) (built: Oct 12 2010 18:47:42) 

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies



gop...@delta:~$ /opt/php53/bin/php -i | grep include_path

include_path => .:/opt/php53//lib/php => .:/opt/php53//lib/php



gop...@delta:~$ cat php-bug.ini 

include_path=${include_path}:/tmp





gop...@delta:~$ /opt/php53/bin/php -c php-bug.ini -i | grep
include_path

include_path => :/tmp => :/tmp



Test script:
---------------
gop...@delta:~$ cat php-bug.ini 

include_path=${include_path}:/tmp

gop...@delta:~$ /opt/php53/bin/php -c php-bug.ini -i | grep
include_path

include_path => :/tmp => :/tmp



Expected result:
----------------
include_path => .:/opt/php53//lib/php:/tmp =>
.:/opt/php53//lib/php:/tmp



Actual result:
--------------
include_path => :/tmp => :/tmp




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



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

Reply via email to