// Turn off all error reporting error_reporting(0); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // 报除E_NOTICE之外的所有错误 // php.ini中的默认设置 error_reporting(E_ALL ^ E_NOTICE); // 报所有错(see changelog) error_reporting(E_ALL); // 报所有错 error_reporting(-1); //同 error_reporting(E_ALL); ini_set(‘error_reporting‘, E_ALL);
时间: 2024-10-15 21:11:35