[php-src] Issue #7860: PHP does not report invalid values for file sizes and interpret them incorrectly

From: Date: Fri, 31 Dec 2021 07:32:48 +0000
Subject: [php-src] Issue #7860: PHP does not report invalid values for file sizes and interpret them incorrectly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238674@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7860 Comment Author: damianwadley The behavior is clearly documented: > The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes), and are > all case-insensitive. **Anything else assumes bytes.** That said, I don't know of a reason why zend_atol couldn't also support GB/MB/KB, as I doubt anyone is currently using it and expecting to get *byte* values. On a related note, might be a good time to add support for T/TB.

« previous php.bugs (#238674) next »