PHP 屏蔽warning
php页面出现了若干个warning:
<br />Warning: DOMDocument::loadXML(): Empty string supplied as input in ******.php on line 21 Call Stack: 0.0007 761568 <br />------中间省略一些警告语句-------.php:21 -40001<br />
然后我在php添加语句-----error_reporting(E_ALL & ~E_NOTICE);后刷新页面,“-40001”竟然还屏蔽掉,实在是搞不懂。
------解决思路----------------------error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
------解决思路----------------------如果加了还有,那个-40001估计是你自己输出的东西了。
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn