bug38623.phpt 280 B

12345678910111213141516
  1. --TEST--
  2. Bug #38623 (leaks in a tricky code with switch() and exceptions)
  3. --FILE--
  4. <?php
  5. try {
  6. switch(strtolower("apache")) {
  7. case "apache":
  8. throw new Exception("test");
  9. break;
  10. }
  11. } catch (Exception $e) {
  12. echo "ok\n";
  13. }
  14. ?>
  15. --EXPECT--
  16. ok