mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
16 lines
245 B
Plaintext
16 lines
245 B
Plaintext
|
--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)
|