|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ministeyr at free dot fr
New email:
PHP Version: OS:


 [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-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 01:01:23 2020 UTC