diff options
author | MaZderMind | 2016-06-17 14:54:46 +0200 |
---|---|---|
committer | MaZderMind | 2016-06-17 14:54:46 +0200 |
commit | 89924b40d4c13d2e74df9d857ce254b01f3104d4 (patch) | |
tree | 1713a11eb8c01ee2cff67a0b7693722090f2f3ea | |
parent | b75294120fec525baa4edd6a0ec23a4223b9e8b8 (diff) |
access error-reporting level via correct function (php7 compatibility)
-rw-r--r-- | lib/Exceptions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Exceptions.php b/lib/Exceptions.php index acdb1b6..2e9109b 100644 --- a/lib/Exceptions.php +++ b/lib/Exceptions.php @@ -1,7 +1,7 @@ <?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { - if (ini_get('error_reporting') == 0) + if (error_reporting() == 0) return; throw new ErrorException($errstr, 0, $errno, $errfile, $errline); |