Re: [RFC] Exposed parsed value of php.ini numeric directives
| From: | Guilliam Xavier | Date: | Wed, 04 May 2022 11:19:19 +0000 |
| Subject: | Re: [RFC] Exposed parsed value of php.ini numeric directives | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117667@lists.php.net to get a copy of this message | ||
Hi,
> Proposed in https://github.com/php/php-src/pull/8454
>
> Related PR in WordPress, replicating the
zend_atol() logic in
> user-space
> https://github.com/WordPress/wordpress-develop/pull/2660
I guess it could [have ]be[en] useful to Symfony too:
https://github.com/symfony/symfony/blob/c70be0957a11fd8b7aa687d6173e76724068daa4/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L210-L246
Just not sure whether it should be e.g. ini_get_size($option) (like
ini_get) or rather e.g. ini_parse_size($value) (more generally
usable).
Regards,
--
Guilliam Xavier