mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
20 lines
216 B
Plaintext
20 lines
216 B
Plaintext
|
--TEST--
|
||
|
Fundamental memory leak test on temporaries
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function ops() {
|
||
|
throw new Exception();
|
||
|
}
|
||
|
|
||
|
try{
|
||
|
$x = 1;
|
||
|
$r = [$x] + ops();
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
==DONE==
|
||
|
--EXPECT--
|
||
|
==DONE==
|