1--TEST--
2Using throw $var with anonymous function return
3--FILE--
4<?php
5
6try {
7 $a = create_function('', 'return new Exception("test");');
8 throw $a();
9} catch (Exception $e) {
10 var_dump($e->getMessage() == 'test');
11}
12
13?>
14--EXPECT--
15bool(true)
16