From 37d82f4980d052597532f74e13086d551f6678c4 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 21 Nov 2018 17:03:44 +0800 Subject: [PATCH] Process/Php7.php --- Process/Php7.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Process/Php7.php b/Process/Php7.php index 833e2f1b..cac9cf90 100644 --- a/Process/Php7.php +++ b/Process/Php7.php @@ -22,15 +22,12 @@ class Pman_Core_Process_Php7 extends Pman die("CLI only"); } } - - function exception_error_handler($errno, $errstr, $errfile, $errline ) - { - throw new ErrorException($errstr, $errno, 0, $errfile, $errline); - } - + function get($base, $opts = array()) { - set_error_handler("exception_error_handler"); + set_error_handler(function ($errno, $errstr, $errfile, $errline ){ + throw new ErrorException($errstr, $errno, 0, $errfile, $errline); + }); $this->scan(); } -- 2.39.2