php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53121 Include path cannot be appended to for default include_path
Submitted: 2010-10-20 21:59 UTC Modified: 2010-10-20 22:03 UTC
Votes:4
Avg. Score:3.8 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: gopalv@php.net Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 5.3SVN-2010-10-20 (snap) OS: ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gopalv@php.net
New email:
PHP Version: OS:

 

 [2010-10-20 21:59 UTC] gopalv@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.

gopalv@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

gopalv@delta:~$ /opt/php53/bin/php -i | grep include_path
include_path => .:/opt/php53//lib/php => .:/opt/php53//lib/php

gopalv@delta:~$ cat php-bug.ini 
include_path=${include_path}:/tmp


gopalv@delta:~$ /opt/php53/bin/php -c php-bug.ini -i | grep include_path
include_path => :/tmp => :/tmp


Test script:
---------------
gopalv@delta:~$ cat php-bug.ini 
include_path=${include_path}:/tmp
gopalv@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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-20 22:03 UTC] gopalv@php.net
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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri May 24 07:01:26 2019 UTC