Commit 77b44f9
committed
async_scheduler_hook: make php_async_starting thread-local
It is the only channel handing a fresh fiber context its coroutine handle;
as a plain static, one ZTS thread's write could be clobbered by another's
before the first entry consumed it, starting a coroutine with a foreign
handle.1 parent 2ad9318 commit 77b44f9
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| |||
0 commit comments