http://bugs.php.net/bug.php?id=24420
i can confirm that this bug can be reproduced in 5.2.8 and 5.2.6, iis
6, windows, official build
# PHP 5.2.8 installer [17,662Kb] - 08 December 2008
md5: 159def484800411060a9eacccafd2253
if can only be reproduced in *.php under document root
can someone reprod
this topic may be discussed before, but i'd bring it up again.
closure was introduced in PHP 5.3, function with its context can now
be stored in an callable object(or a handler in string type, whatever)
i think it's easy and read to introduce generator and yield operator
in php
let's see what was
> On the contrary, It will most likely require a lot of changes to
> provide structures that are able to store their execution context to
> be able to resume it later. I.e.
>
> function foo() {
>error_reporting(0);
>yield "foo";
>trigger_error("foo", E_NOTICE);
>yield "bar";
> }
> $