php.net |  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
Votes:1
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
Description:
------------
Hello,
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).
Thanks.
Ministeyr


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:02 UTC] cmb@php.net
-Package: Feature/Change Request +Package: PHP options/info functions
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jan 21 23:01:25 2019 UTC