summaryrefslogtreecommitdiff
path: root/Zend/tests/bug38623.phpt
blob: 9b042a9141816f10f317585e21f9a9fcab0394fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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