On 04.05.2022 at 13:19, Guilliam Xavier wrote:

> 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).

`ini_get_size($option)` would be nice to have, but may not be feasible,
see <https://github.com/php/php-src/pull/8380#issuecomment-1100226598>.

--
Christoph M. Becker

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to