summaryrefslogtreecommitdiff
path: root/Zend/tests/anonymous_func_003.phpt
blob: 32c5cf085c844c92e2c695b615ade7c39f7ff53a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Using throw $var with anonymous function return
--FILE--
<?php 

try {
	$a = create_function('', 'return new Exception("test");');
	throw $a();
} catch (Exception $e) {
	var_dump($e->getMessage() == 'test');
}

?>
--EXPECT--
bool(true)