bug70207.phpt 385 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug #70207 Finally is broken with opcache
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.file_update_protection=0
  8. --EXTENSIONS--
  9. opcache
  10. --FILE--
  11. <?php
  12. function bar() {
  13. return "bar";
  14. }
  15. function foo() {
  16. try { return bar(); }
  17. finally {
  18. @fopen("non-existent", 'r');
  19. }
  20. }
  21. var_dump(foo());
  22. ?>
  23. --EXPECT--
  24. string(3) "bar"