Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: PHP-5.4.8
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.278 kB
--TEST--
Closure 021: Throwing exception inside lambda
--FILE--
<?php
$foo = function() {
try {
throw new Exception('test!');
} catch(Exception $e) {
throw $e;
}
};
try {
$foo();
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECT--
string(5) "test!"
Jump to Line
Something went wrong with that request. Please try again.