mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
8b972efe5f
If a generator is destroyed in a finally block it will resume the generator to run that finally block before freeing the generator. This was done in the object storage free handler. Running user code in the free handler isn't safe though because the free handlers may be run during request shutdown, already after several key components have been shut down. This is avoided by doing the finally handling in the dtor handler. These handlers are run at the start of the shutdown sequence. |
||
---|---|---|
.. | ||
finally_ran_on_close.phpt | ||
return_return.phpt | ||
return_yield.phpt | ||
run_on_dtor.phpt | ||
throw_yield.phpt | ||
yield_return.phpt | ||
yield_throw.phpt | ||
yield_yield.phpt |