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--EXPECTF--
15Deprecated: Function create_function() is deprecated in %s on line %d
16bool(true)
17