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: 2021-07-07 14:37 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ministeyr at free dot fr Assigned: cmb (profile)
Status: Wont fix 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 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:02 UTC] cmb@php.net
-Package: Feature/Change Request +Package: PHP options/info functions
 [2021-07-07 14:37 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-07-07 14:37 UTC] cmb@php.net
No comment and only one upvote after more than 15 years, look like
a WONTFIX to me.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 18:01:27 2024 UTC