Laravel A non well formed numeric value encountered
我的laravel版本是Laravel Framework 5.4.36, php版本是with Zend OPcache v7.1.9。目前线上出现这个A non well formed numeric value encountered。锁定问题在symfony/var_dumper上面。但是没有找到好的解决办法。
希望你们帮助
关于 LearnKu
具体错误的地方是:
vendor\symfony\var-dumper\Cloner\VarCloner.php(298)原因是因为php7.0以后,十六进制的字串不再被认为是数字。官方的RFC在此:
https://wiki.php.net/rfc/remove_hex_suppor...
对这一行处理,强转成int类型即可。
self::$hashMask = (int)substr(ob_get_clean(), 17);