--TEST-- Lazy objects: destructor of lazy objets is not called if not initialized --FILE-- newLazyGhost(function () { var_dump("initializer"); }); print "After newLazyGhost\n"; // Does not call destructor $obj = null; print "# Proxy:\n"; print "In newLazyProxy\n"; $obj = $reflector->newLazyProxy(function () { var_dump("initializer"); }); print "After newLazyGhost\n"; // Does not call destructor $obj = null; --EXPECT-- # Ghost: In newLazyGhost After newLazyGhost # Proxy: In newLazyProxy After newLazyGhost