Req #54245 [Opn->Wfx]: New directives in php.ini like @include and @override

From: Date: Tue, 13 Apr 2021 11:21:09 +0000
Subject: Req #54245 [Opn->Wfx]: New directives in php.ini like @include and @override
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233383@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54245&edit=1

 ID:                 54245
 Updated by:         cmb@php.net
 Reported by:        jurgen at person dot be
 Summary:            New directives in php.ini like @include and
                     @override
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            PHP options/info functions
 Operating System:   FreeBSD
 PHP Version:        5.3.6RC3
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[2011-03-14 12:38:22] 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





------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=54245&edit=1


Thread (2 messages)

« previous php.bugs (#233383) next »