Req #34303 [Opn->Wfx]: Just the request of a little improvement in ini_get
| From: | cmb@php.net | Date: | Wed, 07 Jul 2021 14:37:02 +0000 |
| Subject: | Req #34303 [Opn->Wfx]: Just the request of a little improvement in ini_get | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234877@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=34303&edit=1
ID: 34303
Updated by: cmb@php.net
Reported by: ministeyr at free dot fr
Summary: Just the request of a little improvement in ini_get
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: PHP options/info functions
PHP Version: 5.1.0RC1
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
No comment and only one upvote after more than 15 years, look like
a WONTFIX to me.
Previous Comments:
------------------------------------------------------------------------
[2005-08-30 11:29:44] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=34303&edit=1