php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66574 Allow multiple paths in php_ini_scanned_path
Submitted: 2014-01-25 08:25 UTC Modified: 2014-01-29 09:37 UTC
From: remi@php.net Assigned: remi (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.5.8 OS: GNU/Linux
Private report: No CVE-ID: None
 [2014-01-25 08:25 UTC] remi@php.net
Description:
------------
php_ini_scanned_path, from --with-config-file-scan-dir option or from PHP_INI_SCAN_DIR environment variable allow a single path.

In some case it could be useful to allow multiple.

In the proposed patch, multiple paths are allow, using syntax inspired from Unix MANPATH (: separated list, enmpty string for builtin value).

For example, this allow to use:
PHP_INI_SCAN_DIR=:/myproject/php.d php
PHP_INI_SCAN_DIR=/myproject/php.d: php




Patches

iniscan-multipath-full.patch (last revision 2014-01-25 08:26 UTC by remi@php.net)
iniscan-multipath-strip.patch (last revision 2014-01-25 08:26 UTC by remi@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-25 08:26 UTC] remi@php.net
The following patch has been added/updated:

Patch Name: iniscan-multipath-strip.patch
Revision:   1390638364
URL:        https://bugs.php.net/patch-display.php?bug=66574&patch=iniscan-multipath-strip.patch&revision=1390638364
 [2014-01-25 08:26 UTC] remi@php.net
The following patch has been added/updated:

Patch Name: iniscan-multipath-full.patch
Revision:   1390638384
URL:        https://bugs.php.net/patch-display.php?bug=66574&patch=iniscan-multipath-full.patch&revision=1390638384
 [2014-01-25 08:27 UTC] remi@php.net
iniscan-multipath-full.patch is the patch against php 5.5.9RC1

iniscan-multipath-strip.patch is a reduced version (diff -bu), more readable to check what have really changed.
 [2014-01-29 09:37 UTC] remi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: remi
 [2014-01-29 09:37 UTC] remi@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.

Fixed in http://git.php.net/?p=php-src.git;a=commitdiff;h=da84f3af751aa9bbf76bc22924a488f981d47088

Will be in 5.5.10
 [2015-06-17 20:50 UTC] dol+php at cyon dot ch
Dear Remi

Is it possible to add this patch also to the PHP 5.4 version. We had to apply the patch our self to get the same behavior as PHP 5.5 and 5.6.

btw: Nice work on this. We were able to streamline our setup with this patch. :thumbsup:
 [2015-06-18 05:27 UTC] remi@php.net
Sorry, but PHP 5.4 is "security" only (and will be EOL in a few weeks).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 05:01:28 2024 UTC