|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34303 Just the request of a little improvement in ini_get
Submitted: 2005-08-30 11:29 UTC Modified: 2016-12-30 23:02 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ministeyr at free dot fr Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.1.0RC1 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-08-30 11:29 UTC] ministeyr at free dot fr
In the documentation, it is said that "when querying memory size values" using ini_get, it returns a string (like 2M, 512K, etc). Then there is an example of a "return_bytes" function wich would get the corresponding integer.
I wonder if you could implement such a function in the core php language, it is really often needed, and would keep the scripts compatible if you change the format of the specifications in the .ini file (ie. if you add the possibility of specifying memory sizes with "KB", "MB" instead of M and K).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:02 UTC]
-Package: Feature/Change Request +Package: PHP options/info functions
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 15:01:24 2021 UTC