aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2016-06-17 14:54:46 +0200
committerMaZderMind2016-06-17 14:54:46 +0200
commit89924b40d4c13d2e74df9d857ce254b01f3104d4 (patch)
tree1713a11eb8c01ee2cff67a0b7693722090f2f3ea
parentb75294120fec525baa4edd6a0ec23a4223b9e8b8 (diff)
access error-reporting level via correct function (php7 compatibility)
Diffstat (limited to '')
-rw-r--r--lib/Exceptions.php2
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);