[RSS Feed/News] Small Bug in getBytesFromPhpConfigValue

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom