Skip to content

Commit 739fcdf

Browse files
committed
* Fixed correct handling of multiple SAPI initializations for PHPDBG.
1 parent 3d600d5 commit 739fcdf

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

async_API.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -819,10 +819,8 @@ void async_await_futures(
819819

820820
void async_api_register(void)
821821
{
822-
zend_string *module = zend_string_init(PHP_ASYNC_NAME_VERSION, sizeof(PHP_ASYNC_NAME_VERSION) - 1, 0);
823-
824822
zend_async_scheduler_register(
825-
module,
823+
PHP_ASYNC_NAME_VERSION,
826824
false,
827825
new_coroutine,
828826
async_new_scope,
@@ -838,6 +836,4 @@ void async_api_register(void)
838836
get_awaiting_info,
839837
async_get_class_ce
840838
);
841-
842-
zend_string_release(module);
843839
}

libuv_reactor.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,10 +1587,8 @@ static int libuv_exec(
15871587

15881588
void async_libuv_reactor_register(void)
15891589
{
1590-
zend_string * module_name = zend_string_init(LIBUV_REACTOR_NAME, sizeof(LIBUV_REACTOR_NAME) - 1, 0);
1591-
15921590
zend_async_reactor_register(
1593-
module_name,
1591+
LIBUV_REACTOR_NAME,
15941592
false,
15951593
libuv_reactor_startup,
15961594
libuv_reactor_shutdown,
@@ -1608,6 +1606,4 @@ void async_libuv_reactor_register(void)
16081606
libuv_new_exec_event,
16091607
libuv_exec
16101608
);
1611-
1612-
zend_string_release(module_name);
16131609
}

0 commit comments

Comments
 (0)