php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61017 ~ in include_path
Submitted: 2012-02-08 17:21 UTC Modified: 2013-01-26 12:05 UTC
From: spamik at yum dot pl Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 5.3.10 OS:
Private report: No CVE-ID: None
 [2012-02-08 17:21 UTC] spamik at yum dot pl
Description:
------------
include_path needs something for home directory or username substitution. Without 
it tens of tousands of unmanagable php.ini specific to every username are needed.

in php.ini
include_path = ".:~/pear/php/"
or
include_path = ".:/home/$LOGIN/pear/php/"





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-08 17:25 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-02-08 17:25 UTC] rasmus@php.net
How would that work? Generally the web server will run as some generic user, so ~ 
and $LOGIN will not have a meaningful value.
 [2012-02-09 17:11 UTC] spamik at yum dot pl
-Status: Feedback +Status: Open
 [2012-02-09 17:11 UTC] spamik at yum dot pl
right, people are still using mod_php :( That of course is not a issue with suexec 
+ fastcgi
 [2012-02-09 17:39 UTC] rasmus@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2012-02-09 17:39 UTC] rasmus@php.net
Right, or they are running nginx+php-fpm without any sort of suexec feature. 
This would be a feature that only worked for suexec users and as such it would 
be quite confusing.

Note though that env variables work in your .ini and .user.ini files. So you can 
use ${LOGIN} or ${USER}. 

eg.
include_path = ".:${USER}/pear/php/"

so this feature is actually already there. Changing it to a documentation 
problem since I couldn't find this documented anywhere.
 [2013-01-26 12:05 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=329306
Log: #61017 add note that environment variables can be used in php.ini
 [2013-01-26 12:05 UTC] krakjoe@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2013-01-26 12:05 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 02:01:31 2024 UTC