From: Edward Date: Wed, 21 Nov 2018 09:03:44 +0000 (+0800) Subject: Process/Php7.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=37d82f4980d052597532f74e13086d551f6678c4 Process/Php7.php --- 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(); }