php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54245 New directives in php.ini like @include and @override
Submitted: 2011-03-14 12:38 UTC Modified: 2021-04-13 11:21 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jurgen at person dot be Assigned: cmb (profile)
Status: Wont fix Package: PHP options/info functions
PHP Version: 5.3.6RC3 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jurgen at person dot be
New email:
PHP Version: OS:

 

 [2011-03-14 12:38 UTC] jurgen at person dot be
Description:
------------
@include options to split large PHP.INI to PHP.SECTION.INI

It would be nice to have a 'include' directive, so we can split a php.ini
into different configuration files.  It should work with cli, cgi and mod-php
as it should included .ini files should be able to override options.
Directives which do override a setting, should throw an notice, unless the
are set as @override option = ... 


Test script:
---------------
1. Sample of @include:

php.ini with:

...
safe_mode_gid = On
expose_php = On
...

;;;;;;;;;;;;;;;;;;
; Include of other .ini
;
@./php.session.ini
@./php.mysql.ini
@./php.mysqli.ini

2. Sample of @override

file: php.custom.ini

@override memory_limit = 512M




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-13 11:21 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-04-13 11:21 UTC] cmb@php.net
Given that it is already possible to scan a directory for INI
files[1], I don't think this feature makes sense.  If you still
feel strongly that the feature would be beneficial for PHP, please
pursue the RFC process[2].

[1] <https://www.php.net/manual/en/configuration.file.php#configuration.file.scan>
[2] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 13:01:30 2025 UTC