temporary_cleaning_017.phpt 472 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Live range & free on return & TMP var of RETURN opcode
  3. --FILE--
  4. <?php
  5. class bar{
  6. public $y;
  7. function __destruct() {
  8. y;
  9. }
  10. }
  11. foreach(new bar as $y) {
  12. try {
  13. return new Exception;
  14. } catch(y) {
  15. }
  16. }
  17. ?>
  18. --EXPECTF--
  19. Fatal error: Uncaught Error: Undefined constant "y" in %stemporary_cleaning_017.php:5
  20. Stack trace:
  21. #0 %stemporary_cleaning_017.php(10): bar->__destruct()
  22. #1 {main}
  23. thrown in %stemporary_cleaning_017.php on line 5