Bug Small Bug in getBytesFromPhpConfigValue

There is a bug in this version
M

mm-tech

Guest
So I mistyped my Units in my php.ini. I wrote 50MB, not 50M, but had to look through the source code until I realized what my error was. While looking I found this code that tries to fix this kind of mistake. But it can't handle this mistake, because $units will always be one character, in case of 50M it will be "M" and in case of 50MB it will be "B". In my personal opinion it would be nice if MB units generated a warning message.

xenforo/src/XF/Util/Php.php:456
PHP:

protected static...

Read more

Continue reading...