fixed wrong usage of unset()

This commit is contained in:
Fabien Potencier 2013-09-13 07:05:55 +02:00
parent b591419631
commit 4135f6803b
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class ErrorHandler
return;
}
unset($this->reservedMemory);
$this->reservedMemory = '';
$type = $error['type'];
if (0 === $this->level || !in_array($type, array(E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE))) {
return;

View File

@ -136,7 +136,7 @@ class ProfilerListener implements EventSubscriberInterface
if ($master) {
$this->saveProfiles($profile);
unset($this->children);
$this->children = new \SplObjectStorage();
}
}