Fix DeprecationErrorHandler on PHP 5.3

This commit is contained in:
Nicolas Grekas 2015-12-06 16:19:18 +01:00
parent 27ba4b29f0
commit a4aafca33d

View File

@ -81,7 +81,7 @@ class DeprecationErrorHandler
exit(1); exit(1);
} }
if ('legacy' !== $group && self::MODE_WEAK !== $mode) { if ('legacy' !== $group && DeprecationErrorHandler::MODE_WEAK !== $mode) {
$ref = &$deprecations[$group][$msg]['count']; $ref = &$deprecations[$group][$msg]['count'];
++$ref; ++$ref;
$ref = &$deprecations[$group][$msg][$class.'::'.$method]; $ref = &$deprecations[$group][$msg][$class.'::'.$method];
@ -147,7 +147,7 @@ class DeprecationErrorHandler
if (!empty($notices)) { if (!empty($notices)) {
echo "\n"; echo "\n";
} }
if (self::MODE_WEAK !== $mode && self::MODE_WEAK_VERBOSE !== $mode && ($deprecations['unsilenced'] || $deprecations['remaining'] || $deprecations['other'])) { if (DeprecationErrorHandler::MODE_WEAK !== $mode && DeprecationErrorHandler::MODE_WEAK_VERBOSE !== $mode && ($deprecations['unsilenced'] || $deprecations['remaining'] || $deprecations['other'])) {
exit(1); exit(1);
} }
}); });