mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
17 lines
265 B
Plaintext
17 lines
265 B
Plaintext
|
--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
|