关于使用PHP7出现错误的提示

管理员 zsx 2016-6-5 5393

若出现以下错误:
(2)E_WARNING : Leaked 1 hashtable iterators (register_shutdown_function) (150101) (Linux; nginx1.9.12; PHP 7.0.4; mysqli; curl)
最简单的解决方案:请升级到PHP 7.0.5以上版本。
错误原因:
1. 你在编译PHP 7.0.x时指定了【--enable-debug】参数。
2.
Don't report hashtable iterator leaks on unclean shutdown, those are expected. (http://git.php.net/?p=php-src.git;a=commit;h=d1057cc13971e90ea3e7720dc5c82bbc92c4ad23
请注意:如无能力了解PHP编译文档,请使用已编译并优化的二进制文件,不要参照教程自己手动编译!


非技术人员请忽略以下信息。

技术参考:
1. PHP Change Log:


2. PHP Issue Tracker: https://bugs.php.net/bug.php?id=71470


3. Commit Log: http://git.php.net/?p=php-src.git;a=commitdiff;h=d1057cc13971e90ea3e7720dc5c82bbc92c4ad23





不理世事

返回