php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69361 ini_get_all('core') should only return core ini settings
Submitted: 2015-04-03 00:05 UTC Modified: 2021-08-18 13:48 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: anner at eigengang dot nl Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.6.7 OS: Linux (Debian 8)
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: anner at eigengang dot nl
New email:
PHP Version: OS:

 

 [2015-04-03 00:05 UTC] anner at eigengang dot nl
Description:
------------
ini_get_all('core') returns ini settings of all extensions, not only of the Core extension. IMHO this should only happen when you call ini_get_all().

Test script:
---------------
<?php var_dump(ini_get_all('core')); ?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-18 13:48 UTC] cmb@php.net
This appears to be a deliberate design decision[1], dating back to
the introduction of this function; while I don't understand the
reasoning, it is clearly something that cannot be changed without
causing a BC break, so I'm changing to feature request.

I also added relevant documentation[2].

[1] <https://github.com/php/php-src/blob/php-7.4.22/ext/standard/basic_functions.c#L5460-L5462>
[2] <https://github.com/php/doc-en/commit/1d06db6914a22f97f20daad964b3d5c5511b2552>
 [2021-08-18 13:48 UTC] cmb@php.net
-Summary: ini_get_all('core') returns all ini settings +Summary: ini_get_all('core') should only return core ini settings -Type: Bug +Type: Feature/Change Request
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 16:01:29 2024 UTC