diff --git a/lib/SimpleSAML/Error/Assertion.php b/lib/SimpleSAML/Error/Assertion.php index 67b27d13f7c979639ba2b553cfc1037faba47c4a..10bb386ce26d82b0b48b64aafe98457322b1b866 100644 --- a/lib/SimpleSAML/Error/Assertion.php +++ b/lib/SimpleSAML/Error/Assertion.php @@ -52,8 +52,8 @@ class SimpleSAML_Error_Assertion extends SimpleSAML_Error_Exception { * disabled. */ public static function installHandler() { + assert_options(ASSERT_WARNING, 0); - assert_options(ASSERT_BAIL, 0); assert_options(ASSERT_QUIET_EVAL, 0); assert_options(ASSERT_CALLBACK, array('SimpleSAML_Error_Assertion', 'onAssertion')); } @@ -71,10 +71,12 @@ class SimpleSAML_Error_Assertion extends SimpleSAML_Error_Exception { public static function onAssertion($file, $line, $message) { if(!empty($message)) { - throw new self($message); + $exception = new self($message); } else { - throw new self(); + $exception = new self(); } + + $exception->logError(); } -} \ No newline at end of file +}