Edit report at https://bugs.php.net/bug.php?id=62919&edit=1
ID: 62919 Updated by: [email protected] Reported by: mattia dot citterio at gmail dot com Summary: Serialize Reflection Status: Open -Type: Bug +Type: Feature/Change Request Package: Reflection related Operating System: Linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Reflection* doesn't define their __sleep/__wakeup methods. so change to FR instead of a bug Previous Comments: ------------------------------------------------------------------------ [2012-08-24 09:26:19] mattia dot citterio at gmail dot com Description: ------------ Cannot serialize/deserialize objects. This is the produced error on the last line: PHP Fatal error: ReflectionClass::newInstanceArgs(): Internal error: Failed to retrieve the reflection object Test script: --------------- class A { public function __construct() { } } $r = new ReflectionClass('A'); $r = unserialize(serialize($r)); $a = $r->newInstanceArgs(array()); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62919&edit=1
