Merge branch '4.2'
* 4.2: fixed CS [Intl] Enable error handler during compile
This commit is contained in:
commit
32785185be
@ -68,6 +68,12 @@ function get_icu_version_from_genrb($genrb)
|
|||||||
return $matches[1];
|
return $matches[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
|
set_error_handler(function ($type, $msg, $file, $line) {
|
||||||
|
throw new \ErrorException($msg, 0, $type, $file, $line);
|
||||||
|
});
|
||||||
|
|
||||||
set_exception_handler(function (\Throwable $exception) {
|
set_exception_handler(function (\Throwable $exception) {
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
@ -82,10 +88,7 @@ set_exception_handler(function (\Throwable $exception) {
|
|||||||
echo get_class($cause).': '.$cause->getMessage()."\n";
|
echo get_class($cause).': '.$cause->getMessage()."\n";
|
||||||
echo "\n";
|
echo "\n";
|
||||||
echo $cause->getFile().':'.$cause->getLine()."\n";
|
echo $cause->getFile().':'.$cause->getLine()."\n";
|
||||||
foreach ($cause->getTrace() as $trace) {
|
echo $cause->getTraceAsString()."\n";
|
||||||
echo $trace['file'].':'.$trace['line']."\n";
|
|
||||||
}
|
|
||||||
echo "\n";
|
|
||||||
|
|
||||||
$cause = $cause->getPrevious();
|
$cause = $cause->getPrevious();
|
||||||
$root = false;
|
$root = false;
|
||||||
|
Reference in New Issue
Block a user