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: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jurgen at person dot be Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.3.6RC3 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 + 23 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 00:01:32 2019 UTC