php-src/Zend/tests/bug38623.phpt
2020-02-03 22:52:20 +01:00

17 lines
280 B
PHP

--TEST--
Bug #38623 (leaks in a tricky code with switch() and exceptions)
--FILE--
<?php
try {
switch(strtolower("apache")) {
case "apache":
throw new Exception("test");
break;
}
} catch (Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok