temporary_cleaning_003.phpt 216 B

12345678910111213141516171819
  1. --TEST--
  2. Fundamental memory leak test on temporaries
  3. --FILE--
  4. <?php
  5. function ops() {
  6. throw new Exception();
  7. }
  8. try{
  9. $x = 1;
  10. $r = [$x] + ops();
  11. } catch (Exception $e) {
  12. }
  13. ?>
  14. ==DONE==
  15. --EXPECT--
  16. ==DONE==