| #
a81f3d99 |
| 24-Apr-2019 |
Andreas Gohr <gohr@cosmocode.de> |
fix and test php_to_byte() related to #2756 #2556
This refactors the php_to_byte() method to properly return integers always. A bug when reading byte sizes under 10 bytes was fixed. Infinity (signal
fix and test php_to_byte() related to #2756 #2556
This refactors the php_to_byte() method to properly return integers always. A bug when reading byte sizes under 10 bytes was fixed. Infinity (signaled by a -1 in php.ini) is now returned as -1.
According to [1] PHP supports size shortcuts for (K)ilobytes, (M)egabytes and (G)igagbytes only. The support for Tera- and Petabytes has been removed.
[1] https://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
show more ...
|