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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ministeyr at free dot fr
New email:
PHP Version: OS:

 

 [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: Fri Dec 13 07:01:24 2019 UTC