Searched hist:a81f3d99fc1bb57989fc0acb0ed72fc168bb74ad (Results 1 – 2 of 2) sorted by relevance
| /dokuwiki/_test/tests/inc/ |
| H A D | common_php_to_byte.test.php | a81f3d99fc1bb57989fc0acb0ed72fc168bb74ad Wed Apr 24 12:10:54 UTC 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 (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
|
| /dokuwiki/inc/ |
| H A D | common.php | a81f3d99fc1bb57989fc0acb0ed72fc168bb74ad Wed Apr 24 12:10:54 UTC 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 (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
|