]> granicus.if.org Git - php/commit
Fixed Request #66574 Allow multiple paths in php_ini_scanned_path
authorRemi Collet <remi@php.net>
Wed, 29 Jan 2014 08:53:22 +0000 (09:53 +0100)
committerRemi Collet <remi@php.net>
Wed, 29 Jan 2014 08:53:22 +0000 (09:53 +0100)
commitda84f3af751aa9bbf76bc22924a488f981d47088
tree92f2e1094e188b829c9cd48836e365bf36ef9cfe
parent3182660c0477774570df2d0cf8592eae38e16f5a
Fixed Request #66574 Allow multiple paths in php_ini_scanned_path

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, empty string for builtin value).

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

Real use case: in SCL for dependent collections where each collection
provides a separate tree for extensions, libraries and ini files.
NEWS
main/php_ini.c