[Sat Aug 12 02:21:28.993810 2017] [php7:notice] [pid 20352 ] [客户端:14302] PHP的通知:在/var/www/zephyr/library/XenForo/Application.php遇到上线1534PHP注意:在1534行/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
我的猜测是$ curLimit = @ini_get( 'memory_limit的');被设置为类似1M的东西。所以请检查$ curLimit是什么。 – Gordon
'var_dump($ curLimit)' –