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
Status: Closed Package: PHP options/info functions
PHP Version: 5.5.8 OS: GNU/Linux
Private report: No CVE-ID:
 [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)

Add a Patch

Pull Requests

Add a Pull Request

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
 
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sat Mar 07 00:01:54 2015 UTC