PHP 障蔽warning

WBOY
Release: 2016-06-13 12:16:03
Original
1205 people have browsed it

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 />
Copy after login

然后我在php添加语句-----error_reporting(E_ALL & ~E_NOTICE);后刷新页面,“-40001”竟然还屏蔽掉,实在是搞不懂。

------解决思路----------------------
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

------解决思路----------------------
如果加了还有,那个-40001估计是你自己输出的东西了。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template