This commit is contained in:
as2252258@163.com
2021-05-04 02:29:59 +08:00
parent 63e9cfe5e7
commit 1b2be2eeec
+1 -1
View File
@@ -35,7 +35,7 @@ class ErrorHandler extends Component implements ErrorInterface
*/ */
public function register() public function register()
{ {
ini_set('display_errors', '0'); // ini_set('display_errors', '1');
set_exception_handler([$this, 'exceptionHandler']); set_exception_handler([$this, 'exceptionHandler']);
if (defined('HHVM_VERSION')) { if (defined('HHVM_VERSION')) {
set_error_handler([$this, 'errorHandler']); set_error_handler([$this, 'errorHandler']);