--TEST-- assign to object leaks with ref --FILE-- a = a(1); unset($this->a); } } $a = new A; $a->test(); $a->test(); echo "okey"; ?> --EXPECT-- okey