mirror of
https://github.com/php/php-src.git
synced 2024-09-26 20:37:29 +00:00
26 lines
372 B
Plaintext
26 lines
372 B
Plaintext
|
--TEST--
|
||
|
Temporary leak on exception
|
||
|
--XFAIL--
|
||
|
See Bug #62210 and attempt to fix it in "tmp_livelibess" branch
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function ops() {
|
||
|
throw new Exception();
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
$x = 2;
|
||
|
$y = new stdClass;
|
||
|
while ($x-- && new stdClass) {
|
||
|
$r = [$x] + ($y ? ((array) $x) + [2] : ops());
|
||
|
$y = (array) $y;
|
||
|
}
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
==DONE==
|
||
|
--EXPECT--
|
||
|
==DONE==
|