教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 php 错误屏蔽 error_reporting详解

php 错误屏蔽 error_reporting详解

发布时间:2019-02-15   编辑:jiaochengji.com
教程集为您提供php 错误屏蔽 error,reporting详解等资源,欢迎您收藏本站,我们将为您提供最新的php 错误屏蔽 error,reporting详解资源

在Windows环境下:原本在catch variable name misspellings …);包括报告一些未初始化的变量或捕捉变量名的拼写错误
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

// Report all errors except E_NOTICE
// This is the default value set in php.ini;报告所有的错误但不包括E_NOTICE 这也是php.ini的缺省设置
error_reporting(E_ALL ^ E_NOTICE);

// Report all PHP errors (bitwise 63 may be used in PHP 3);报告所有的错误
error_reporting(E_ALL);

// Same as error_reporting(E_ALL);同上
ini_set('error_reporting', E_ALL);

 

您可能感兴趣的文章:
php 错误屏蔽 error_reporting详解
php 忽略错误
php错误屏蔽
php报错Notice: Undefined variable的解决办法
php提示Notice: Undefined variable的解决办法
php关闭警告错误的方法
php设置错误级别
解决PHP提示Notice: Undefined variable的办法
php程序不显示错误设置方法
php error_reporting()函数的用法举例(错误捕捉)

[关闭]
~ ~