@@ -1092,7 +1092,7 @@ |
||
1092 | 1092 | // PHP currently has a terrible handling with unserialize in which errors are fatal and not catchable. Lets borrow some code from the RFC that intends to fix this |
1093 | 1093 | // https://wiki.php.net/rfc/improve_unserialize_error_handling |
1094 | 1094 | try { |
1095 | - set_error_handler(static function ($severity, $message, $file, $line) { |
|
1095 | + set_error_handler(static function ($severity, $message, $file, $line) { |
|
1096 | 1096 | throw new \ErrorException($message, 0, $severity, $file, $line); |
1097 | 1097 | }); |
1098 | 1098 | $ser_test = @unserialize($modSettings['attachmentUploadDir']); |