Doc #61017 [Opn->Csd]: ~ in include_path

From: Date: Sat, 26 Jan 2013 12:05:31 +0000
Subject: Doc #61017 [Opn->Csd]: ~ in include_path
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9488@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61017&edit=1 ID: 61017 Updated by: krakjoe@php.net Reported by: spamik at yum dot pl Summary: ~ in include_path -Status: Open +Status: Closed Type: Documentation Problem Package: *General Issues PHP Version: 5.3.10 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2013-01-26 12:05:23] 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 ------------------------------------------------------------------------ [2012-02-09 17:39:21] 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. ------------------------------------------------------------------------ [2012-02-09 17:11:29] spamik at yum dot pl right, people are still using mod_php :( That of course is not a issue with suexec + fastcgi ------------------------------------------------------------------------ [2012-02-08 17:25:31] 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-08 17:21:02] 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/" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61017&edit=1

« previous php.doc.bugs (#9488) next »