mirror of
https://github.com/php/php-src.git
synced 2024-12-22 00:10:16 +08:00
17 lines
315 B
PHP
17 lines
315 B
PHP
--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)
|