File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -819,10 +819,8 @@ void async_await_futures(
819819
820820void 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}
Original file line number Diff line number Diff line change @@ -1587,10 +1587,8 @@ static int libuv_exec(
15871587
15881588void 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}
You can’t perform that action at this time.
0 commit comments