1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

The ProxyFactory was redeclaring methods serialize and unserialize on the cache file on some OSs.

This commit is contained in:
Thiago Festa 2011-10-28 17:54:15 -02:00
parent 3745e948c6
commit 66d2b9e0fb

View file

@ -167,7 +167,7 @@ class ProxyFactory
foreach ($class->reflClass->getMethods() as $method) {
/* @var $method ReflectionMethod */
if ($method->isConstructor() || in_array(strtolower($method->getName()), array("__sleep", "__clone"))) {
if ($method->isConstructor() || in_array(strtolower($method->getName()), array("__sleep", "__clone")) || $class->reflClass->getName() != $method->class) {
continue;
}