[2017 年 8 月 12 日星期六 02:21:28.993810] [php7:notice] [pid 20352] [client :14302] PHP 注意:在 /var/www/zephyr/library/XenForo/Application.php 中遇到格式不正确的数值在线 1534
/**
* Gets the current memory limit.
*
* @return int
*/
public static function getMemoryLimit()
{
if (self::$_memoryLimit === null)
{
$curLimit = @ini_get('memory_limit');
if ($curLimit === false)
{
// reading failed, so we have to treat it as unlimited - unlikely to be able to change anyway
$curLimit = -1;
}
else
{
switch (substr($curLimit, -1))
{
case 'g':
case 'G':
$curLimit *= 1024; //This is line 1534
// fall through
case 'm':
case 'M':
$curLimit *= 1024;
// fall through
case 'k':
case 'K':
$curLimit *= 1024;
}
}
self::$_memoryLimit = intval($curLimit);
}
return self::$_memoryLimit;
}
不太确定如何解决这个问题,有点难过,我指出第 1534 行