php/php-src — pull request #242 by bzick (2012-12-18 08:10:11+00:00)
Title: PHP 5.5 generator exception

Allows you to throw an exception into the yield of the generator.
Example:
```PHP
function reader() {
$b = 5;
try {
$a = (yield $b);
} catch(Exception $e) {
var_dump("Stop generator");
}
}

$reader = reader();
$reader->raise(new Exception("Invalid data"));
```