1--TEST-- 2Temporary leak on exception 3--FILE-- 4<?php 5 6function ops() { 7 throw new Exception(); 8} 9 10try { 11 $x = 2; 12 $y = new stdClass; 13 while ($x-- && new stdClass) { 14 $r = [$x] + ($y ? ((array) $x) + [2] : ops()); 15 $y = (array) $y; 16 } 17} catch (Exception $e) { 18} 19 20?> 21==DONE== 22--EXPECT-- 23==DONE== 24