php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67389 document PHP_INI_SCAN_DIR
Submitted: 2014-06-05 18:03 UTC Modified: -
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tyrael@php.net Assigned:
Status: Open Package: *Configuration Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tyrael@php.net
New email:
PHP Version: OS:

 

 [2014-06-05 18:03 UTC] tyrael@php.net
Description:
------------
we should document that the additionally loaded ini files directory(which can be set via --with-config-file-scan-dir when compiling) can be changed by the PHP_INI_SCAN_DIR environment variable (maybe mention the stuff like SetEnv PHP_INI_SCAN_DIR /tmp won't work, but exporting the PHP_INI_SCAN_DIR env var from the apache startup script will).
we should also mention that listing multiple directories is supported since 5.5.10:
https://bugs.php.net/bug.php?id=66574


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-15 01:33 UTC] dzuelke at gmail dot com
Also worth documenting: the variable can contain an empty part (e.g. `:/extra/dir` or `/extra/dir:`), in which case the default value will be used.

This can then be used to load a bunch of additional INI files at runtime, while preserving all globally configured INIs.
 [2016-02-21 16:05 UTC] dzuelke at gmail dot com
Looks like this is already documented at http://php.net/manual/en/configuration.file.php#configuration.file.scan
 [2016-05-25 22:29 UTC] aneece at gmail dot com
While the general behavior is indeed documented at that link (http://php.net/manual/en/configuration.file.php#configuration.file.scan), it does not mention that the capability to handle multiple directories is only available from 5.5.10, as tyrael requested.

Instead, the text makes it sound like any version after PHP 5.2.0 can accomplish this, since that is the only time a version is mentioned in that block. It would be great if that page could get a slight update. Or you could even just add it to the Changelog section of that page.

Either way, it'd be a big help. Thanks!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 00:01:26 2019 UTC