--TEST-- GH-10169: Fix use-after-free when releasing object during property assignment --FILE-- prop = new B(); } catch (Error $e) { echo $e->getMessage(), "\n"; } $a = new A(); $a->prop = ''; try { $a->prop = new B(); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Object was released while assigning to property A::$prop Object was released while assigning to property A::$prop