blob: f06a463727aa0bf2e103f7b0b998da3ad2a7e9a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--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)
|