Details
-
Type:
Patch
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Zend_Loader
-
Labels:None
Description
Zend.php, Zend::register(), line 293-310
$e = ''; // an object can only be stored in the registry once foreach (self::$_registry as $dup=>$registeredObject) { if ($obj === $registeredObject) { $e = "Duplicate object handle already exists in the registry as \"$dup\"."; break; } } /** * @todo throwing exceptions inside foreach could cause leaks, use a workaround * like this until a fix is available * * @link http://bugs.php.net/bug.php?id=34065 */ if ($e) { throw new Zend_Exception($e); }
now it can be
// an object can only be stored in the registry once foreach (self::$_registry as $dup=>$registeredObject) { if ($obj === $registeredObject) { throw new Zend_Exception("Duplicate object handle already exists in the registry as \"$dup\"."); } }
But if ZF's minimal requirements will be PHP 5.2.0 (foreach memleak fixed in it).
Assigning to Gavin.