projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd43ba1
)
Process/Php7.php
author
Edward
<edward@roojs.com>
Wed, 21 Nov 2018 09:03:44 +0000
(17:03 +0800)
committer
Edward
<edward@roojs.com>
Wed, 21 Nov 2018 09:03:44 +0000
(17:03 +0800)
Process/Php7.php
patch
|
blob
|
history
diff --git
a/Process/Php7.php
b/Process/Php7.php
index
833e2f1
..
cac9cf9
100644
(file)
--- a/
Process/Php7.php
+++ b/
Process/Php7.php
@@
-22,15
+22,12
@@
class Pman_Core_Process_Php7 extends Pman
die("CLI only");
}
}
die("CLI only");
}
}
-
- function exception_error_handler($errno, $errstr, $errfile, $errline )
- {
- throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
- }
-
+
function get($base, $opts = array())
{
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();
}
$this->scan();
}