Re: [RFC] Exposed parsed value of php.ini numeric directives

From: Date: Wed, 04 May 2022 13:52:31 +0000
Subject: Re: [RFC] Exposed parsed value of php.ini numeric directives
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-117668@lists.php.net to get a copy of this message
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

« previous php.internals (#117668) next »