📄 Viewing: anonymous_func_003.phpt

--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');
}

?>
--EXPECTF--
Deprecated: Function create_function() is deprecated in %s on line %d
bool(true)

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests