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(
819
819
820
820
void async_api_register (void )
821
821
{
822
- zend_string * module = zend_string_init (PHP_ASYNC_NAME_VERSION , sizeof (PHP_ASYNC_NAME_VERSION ) - 1 , 0 );
823
-
824
822
zend_async_scheduler_register (
825
- module ,
823
+ PHP_ASYNC_NAME_VERSION ,
826
824
false,
827
825
new_coroutine ,
828
826
async_new_scope ,
@@ -838,6 +836,4 @@ void async_api_register(void)
838
836
get_awaiting_info ,
839
837
async_get_class_ce
840
838
);
841
-
842
- zend_string_release (module );
843
839
}
Original file line number Diff line number Diff line change @@ -1587,10 +1587,8 @@ static int libuv_exec(
1587
1587
1588
1588
void async_libuv_reactor_register (void )
1589
1589
{
1590
- zend_string * module_name = zend_string_init (LIBUV_REACTOR_NAME , sizeof (LIBUV_REACTOR_NAME ) - 1 , 0 );
1591
-
1592
1590
zend_async_reactor_register (
1593
- module_name ,
1591
+ LIBUV_REACTOR_NAME ,
1594
1592
false,
1595
1593
libuv_reactor_startup ,
1596
1594
libuv_reactor_shutdown ,
@@ -1608,6 +1606,4 @@ void async_libuv_reactor_register(void)
1608
1606
libuv_new_exec_event ,
1609
1607
libuv_exec
1610
1608
);
1611
-
1612
- zend_string_release (module_name );
1613
1609
}
You can’t perform that action at this time.
0 commit comments