xref: /PHP-5.4/Zend/tests/bug38623.phpt (revision 610c7fbe)
1--TEST--
2Bug #38623 (leaks in a tricky code with switch() and exceptions)
3--FILE--
4<?php
5try {
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--
16ok
17