Skip to content

Commit 0eea313

Browse files
committed
php#9: * Fixes in the zend_iterator logic in the context of concurrent iteration.
Added a constant for high priority.
1 parent bc000e1 commit 0eea313

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static bool shutdown_destructors_context_switch_handler(
311311
return false;
312312
}
313313

314-
zend_coroutine_t *shutdown_coroutine = ZEND_ASYNC_SPAWN_WITH_SCOPE_EX(ZEND_ASYNC_MAIN_SCOPE, 1);
314+
zend_coroutine_t *shutdown_coroutine = ZEND_ASYNC_SPAWN_WITH_SCOPE_EX(ZEND_ASYNC_MAIN_SCOPE, ZEND_COROUTINE_HI_PRIORITY);
315315
shutdown_coroutine->internal_entry = shutdown_destructors_async;
316316
shutdown_coroutine->extended_dispose = shutdown_destructors_coroutine_dtor;
317317

Zend/zend_objects_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static bool store_call_destructors_context_switch_handler(
102102
return false;
103103
}
104104

105-
zend_coroutine_t *shutdown_coroutine = ZEND_ASYNC_SPAWN_WITH_SCOPE_EX(ZEND_ASYNC_MAIN_SCOPE, 1);
105+
zend_coroutine_t *shutdown_coroutine = ZEND_ASYNC_SPAWN_WITH_SCOPE_EX(ZEND_ASYNC_MAIN_SCOPE, ZEND_COROUTINE_HI_PRIORITY);
106106
shutdown_coroutine->internal_entry = store_call_destructors_entry;
107107
shutdown_coroutine->extended_dispose = store_call_destructors_coroutine_dtor;
108108

0 commit comments

Comments
 (0)