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

From: Date: Fri, 31 Dec 2021 06:26:13 +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-238673@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7860 Author: salarmehr ### Description There is no error message given if you accidentally use KB, MB or GB instead of K, M or G. and they will be evaluated to some other values. phpinfo() and ini_get() will report what you have written e.g. 1GB , so it will not be clear that there is anything wrong with your setting even though there is. Expected behaviour: Show a notice/warning and revert to the default value. Links: https://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes ### PHP Version 7.*, 8.* ### Operating System _No response_

« previous php.bugs (#238673) next »