Skip to content

Commit bcc1f4b

Browse files
authored
Merge pull request #73 from true-async/72-align-coding-standards-and-naming
72 align coding standards and naming
2 parents e531a32 + dbb8e64 commit bcc1f4b

File tree

144 files changed

+472
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+472
-453
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- Deadlock detection now throws `Async\DeadlockError` exception instead of multiple warnings
2929
- **Breaking Change**: Applications relying on deadlock warnings
3030
will need to be updated to catch `Async\DeadlockError` exceptions
31+
- **Breaking Change: PHP Coding Standards Compliance** - Function names updated to follow official PHP naming conventions:
32+
- `spawnWith()``spawn_with()`
33+
- `awaitAnyOrFail()``await_any_or_fail()`
34+
- `awaitFirstSuccess()``await_first_success()`
35+
- `awaitAllOrFail()``await_all_or_fail()`
36+
- `awaitAll()``await_all()`
37+
- `awaitAnyOfOrFail()``await_any_of_or_fail()`
38+
- `awaitAnyOf()``await_any_of()`
39+
- `currentContext()``current_context()`
40+
- `coroutineContext()``coroutine_context()`
41+
- `currentCoroutine()``current_coroutine()`
42+
- `rootContext()``root_context()`
43+
- `getCoroutines()``get_coroutines()`
44+
- `gracefulShutdown()``graceful_shutdown()`
45+
- **Rationale**: Compliance with [PHP Coding Standards](https://github.com/php/policies/blob/main/coding-standards-and-naming.rst) - functions must use lowercase with underscores
3146

3247
## [0.4.0] - 2025-09-30
3348

async.c

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ PHP_FUNCTION(Async_spawn)
8989
RETURN_OBJ_COPY(&coroutine->std);
9090
}
9191

92-
PHP_FUNCTION(Async_spawnWith)
92+
PHP_FUNCTION(Async_spawn_with)
9393
{
9494
THROW_IF_ASYNC_OFF;
9595
THROW_IF_SCHEDULER_CONTEXT;
@@ -290,7 +290,7 @@ PHP_FUNCTION(Async_await)
290290
zend_async_waker_clean(coroutine);
291291
}
292292

293-
PHP_FUNCTION(Async_awaitAnyOrFail)
293+
PHP_FUNCTION(Async_await_any_or_fail)
294294
{
295295
zval *futures;
296296
zend_object *cancellation = NULL;
@@ -340,7 +340,7 @@ PHP_FUNCTION(Async_awaitAnyOrFail)
340340
RETURN_ZVAL(&result, 0, 0);
341341
}
342342

343-
PHP_FUNCTION(Async_awaitFirstSuccess)
343+
PHP_FUNCTION(Async_await_first_success)
344344
{
345345
zval *futures;
346346
zend_object *cancellation = NULL;
@@ -396,7 +396,7 @@ PHP_FUNCTION(Async_awaitFirstSuccess)
396396
RETURN_ARR(return_array);
397397
}
398398

399-
PHP_FUNCTION(Async_awaitAllOrFail)
399+
PHP_FUNCTION(Async_await_all_or_fail)
400400
{
401401
zval *futures;
402402
zend_object *cancellation = NULL;
@@ -435,7 +435,7 @@ PHP_FUNCTION(Async_awaitAllOrFail)
435435
RETURN_ARR(results);
436436
}
437437

438-
PHP_FUNCTION(Async_awaitAll)
438+
PHP_FUNCTION(Async_await_all)
439439
{
440440
zval *futures;
441441
zend_object *cancellation = NULL;
@@ -485,7 +485,7 @@ PHP_FUNCTION(Async_awaitAll)
485485
RETURN_ARR(return_array);
486486
}
487487

488-
PHP_FUNCTION(Async_awaitAnyOfOrFail)
488+
PHP_FUNCTION(Async_await_any_of_or_fail)
489489
{
490490
zval *futures;
491491
zend_object *cancellation = NULL;
@@ -528,7 +528,7 @@ PHP_FUNCTION(Async_awaitAnyOfOrFail)
528528
RETURN_ARR(results);
529529
}
530530

531-
PHP_FUNCTION(Async_awaitAnyOf)
531+
PHP_FUNCTION(Async_await_any_of)
532532
{
533533
zval *futures;
534534
zend_object *cancellation = NULL;
@@ -633,7 +633,7 @@ PHP_FUNCTION(Async_timeout)
633633
RETURN_OBJ(zend_object);
634634
}
635635

636-
PHP_FUNCTION(Async_currentContext)
636+
PHP_FUNCTION(Async_current_context)
637637
{
638638
ZEND_PARSE_PARAMETERS_NONE();
639639

@@ -661,7 +661,7 @@ PHP_FUNCTION(Async_currentContext)
661661
RETURN_OBJ_COPY(&context->std);
662662
}
663663

664-
PHP_FUNCTION(Async_coroutineContext)
664+
PHP_FUNCTION(Async_coroutine_context)
665665
{
666666
ZEND_PARSE_PARAMETERS_NONE();
667667

@@ -688,7 +688,7 @@ PHP_FUNCTION(Async_coroutineContext)
688688
RETURN_OBJ_COPY(&context->std);
689689
}
690690

691-
PHP_FUNCTION(Async_currentCoroutine)
691+
PHP_FUNCTION(Async_current_coroutine)
692692
{
693693
ZEND_PARSE_PARAMETERS_NONE();
694694

@@ -706,7 +706,7 @@ PHP_FUNCTION(Async_currentCoroutine)
706706
RETURN_OBJ_COPY(&coroutine->std);
707707
}
708708

709-
PHP_FUNCTION(Async_rootContext)
709+
PHP_FUNCTION(Async_root_context)
710710
{
711711
ZEND_PARSE_PARAMETERS_NONE();
712712

@@ -721,7 +721,7 @@ PHP_FUNCTION(Async_rootContext)
721721
RETURN_OBJ_COPY(&context->std);
722722
}
723723

724-
PHP_FUNCTION(Async_getCoroutines)
724+
PHP_FUNCTION(Async_get_coroutines)
725725
{
726726
ZEND_PARSE_PARAMETERS_NONE();
727727

@@ -739,7 +739,7 @@ PHP_FUNCTION(Async_getCoroutines)
739739
ZEND_HASH_FOREACH_END();
740740
}
741741

742-
PHP_FUNCTION(Async_gracefulShutdown)
742+
PHP_FUNCTION(Async_graceful_shutdown)
743743
{
744744
zend_object *cancellation = NULL;
745745

@@ -909,8 +909,7 @@ static PHP_GINIT_FUNCTION(async)
909909
}
910910

911911
/* {{{ PHP_GSHUTDOWN_FUNCTION */
912-
static PHP_GSHUTDOWN_FUNCTION(async)
913-
{
912+
static PHP_GSHUTDOWN_FUNCTION(async){
914913
#ifdef PHP_WIN32
915914
#endif
916915
} /* }}} */

async.stub.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function spawn(callable $task, mixed ... $args): Coroutine {}
2323
*
2424
* @return Coroutine
2525
*/
26-
function spawnWith(ScopeProvider $provider, callable $task, mixed ... $args): Coroutine {}
26+
function spawn_with(ScopeProvider $provider, callable $task, mixed ... $args): Coroutine {}
2727

2828
/**
2929
* Suspends the execution of a Coroutine until the Scheduler takes control.
@@ -37,30 +37,30 @@ function protect(\Closure $closure): mixed {}
3737

3838
function await(Awaitable $awaitable, ?Awaitable $cancellation = null): mixed {}
3939

40-
function awaitAnyOrFail(iterable $triggers, ?Awaitable $cancellation = null): mixed {}
40+
function await_any_or_fail(iterable $triggers, ?Awaitable $cancellation = null): mixed {}
4141

42-
function awaitFirstSuccess(iterable $triggers, ?Awaitable $cancellation = null): mixed {}
42+
function await_first_success(iterable $triggers, ?Awaitable $cancellation = null): mixed {}
4343

44-
function awaitAllOrFail(iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true): array {}
44+
function await_all_or_fail(iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true): array {}
4545

46-
function awaitAll(iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true, bool $fillNull = false): array {}
46+
function await_all(iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true, bool $fillNull = false): array {}
4747

48-
function awaitAnyOfOrFail(int $count, iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true): array {}
48+
function await_any_of_or_fail(int $count, iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true): array {}
4949

50-
function awaitAnyOf(int $count, iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true, bool $fillNull = false): array {}
50+
function await_any_of(int $count, iterable $triggers, ?Awaitable $cancellation = null, bool $preserveKeyOrder = true, bool $fillNull = false): array {}
5151

5252
function delay(int $ms): void {}
5353

5454
function timeout(int $ms): Awaitable {}
5555

56-
function currentContext(): Context {}
56+
function current_context(): Context {}
5757

58-
function coroutineContext(): Context {}
58+
function coroutine_context(): Context {}
5959

6060
/**
6161
* Returns the current coroutine.
6262
*/
63-
function currentCoroutine(): Coroutine {}
63+
function current_coroutine(): Coroutine {}
6464

6565
/**
6666
* Adds an onFinally handler for the current coroutine.
@@ -70,19 +70,19 @@ function currentCoroutine(): Coroutine {}
7070
/**
7171
* Returns the root Scope.
7272
*/
73-
function rootContext(): Context {}
73+
function root_context(): Context {}
7474

7575
/**
7676
* Returns the list of all coroutines
7777
*
7878
* @return Coroutine[]
7979
*/
80-
function getCoroutines(): array {}
80+
function get_coroutines(): array {}
8181

8282
/**
8383
* Start the graceful shutdown of the Scheduler.
8484
*/
85-
function gracefulShutdown(?CancellationError $cancellationError = null): void {}
85+
function graceful_shutdown(?CancellationError $cancellationError = null): void {}
8686

8787
/**
8888
* Execute an external program.

async_arginfo.h

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: aca45cee02a4df47e8e1bc3c2517e6925bd522a9 */
2+
* Stub hash: b455b6ae5681c59882adb70f7d033f77d62de5a4 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_spawn, 0, 1, Async\\Coroutine, 0)
55
ZEND_ARG_TYPE_INFO(0, task, IS_CALLABLE, 0)
66
ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
77
ZEND_END_ARG_INFO()
88

9-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_spawnWith, 0, 2, Async\\Coroutine, 0)
9+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_spawn_with, 0, 2, Async\\Coroutine, 0)
1010
ZEND_ARG_OBJ_INFO(0, provider, Async\\ScopeProvider, 0)
1111
ZEND_ARG_TYPE_INFO(0, task, IS_CALLABLE, 0)
1212
ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
@@ -24,34 +24,34 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_await, 0, 1, IS_MIXED, 0)
2424
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellation, Async\\Awaitable, 1, "null")
2525
ZEND_END_ARG_INFO()
2626

27-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_awaitAnyOrFail, 0, 1, IS_MIXED, 0)
27+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_await_any_or_fail, 0, 1, IS_MIXED, 0)
2828
ZEND_ARG_OBJ_TYPE_MASK(0, triggers, Traversable, MAY_BE_ARRAY, NULL)
2929
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellation, Async\\Awaitable, 1, "null")
3030
ZEND_END_ARG_INFO()
3131

32-
#define arginfo_Async_awaitFirstSuccess arginfo_Async_awaitAnyOrFail
32+
#define arginfo_Async_await_first_success arginfo_Async_await_any_or_fail
3333

34-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_awaitAllOrFail, 0, 1, IS_ARRAY, 0)
34+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_await_all_or_fail, 0, 1, IS_ARRAY, 0)
3535
ZEND_ARG_OBJ_TYPE_MASK(0, triggers, Traversable, MAY_BE_ARRAY, NULL)
3636
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellation, Async\\Awaitable, 1, "null")
3737
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserveKeyOrder, _IS_BOOL, 0, "true")
3838
ZEND_END_ARG_INFO()
3939

40-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_awaitAll, 0, 1, IS_ARRAY, 0)
40+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_await_all, 0, 1, IS_ARRAY, 0)
4141
ZEND_ARG_OBJ_TYPE_MASK(0, triggers, Traversable, MAY_BE_ARRAY, NULL)
4242
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellation, Async\\Awaitable, 1, "null")
4343
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserveKeyOrder, _IS_BOOL, 0, "true")
4444
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fillNull, _IS_BOOL, 0, "false")
4545
ZEND_END_ARG_INFO()
4646

47-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_awaitAnyOfOrFail, 0, 2, IS_ARRAY, 0)
47+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_await_any_of_or_fail, 0, 2, IS_ARRAY, 0)
4848
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
4949
ZEND_ARG_OBJ_TYPE_MASK(0, triggers, Traversable, MAY_BE_ARRAY, NULL)
5050
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellation, Async\\Awaitable, 1, "null")
5151
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserveKeyOrder, _IS_BOOL, 0, "true")
5252
ZEND_END_ARG_INFO()
5353

54-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_awaitAnyOf, 0, 2, IS_ARRAY, 0)
54+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_await_any_of, 0, 2, IS_ARRAY, 0)
5555
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
5656
ZEND_ARG_OBJ_TYPE_MASK(0, triggers, Traversable, MAY_BE_ARRAY, NULL)
5757
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellation, Async\\Awaitable, 1, "null")
@@ -67,67 +67,67 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_timeout, 0, 1, Async\\Await
6767
ZEND_ARG_TYPE_INFO(0, ms, IS_LONG, 0)
6868
ZEND_END_ARG_INFO()
6969

70-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_currentContext, 0, 0, Async\\Context, 0)
70+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_current_context, 0, 0, Async\\Context, 0)
7171
ZEND_END_ARG_INFO()
7272

73-
#define arginfo_Async_coroutineContext arginfo_Async_currentContext
73+
#define arginfo_Async_coroutine_context arginfo_Async_current_context
7474

75-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_currentCoroutine, 0, 0, Async\\Coroutine, 0)
75+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Async_current_coroutine, 0, 0, Async\\Coroutine, 0)
7676
ZEND_END_ARG_INFO()
7777

78-
#define arginfo_Async_rootContext arginfo_Async_currentContext
78+
#define arginfo_Async_root_context arginfo_Async_current_context
7979

80-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_getCoroutines, 0, 0, IS_ARRAY, 0)
80+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_get_coroutines, 0, 0, IS_ARRAY, 0)
8181
ZEND_END_ARG_INFO()
8282

83-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_gracefulShutdown, 0, 0, IS_VOID, 0)
83+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Async_graceful_shutdown, 0, 0, IS_VOID, 0)
8484
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, cancellationError, Async\\CancellationError, 1, "null")
8585
ZEND_END_ARG_INFO()
8686

8787
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Async_Timeout___construct, 0, 0, 0)
8888
ZEND_END_ARG_INFO()
8989

9090
ZEND_FUNCTION(Async_spawn);
91-
ZEND_FUNCTION(Async_spawnWith);
91+
ZEND_FUNCTION(Async_spawn_with);
9292
ZEND_FUNCTION(Async_suspend);
9393
ZEND_FUNCTION(Async_protect);
9494
ZEND_FUNCTION(Async_await);
95-
ZEND_FUNCTION(Async_awaitAnyOrFail);
96-
ZEND_FUNCTION(Async_awaitFirstSuccess);
97-
ZEND_FUNCTION(Async_awaitAllOrFail);
98-
ZEND_FUNCTION(Async_awaitAll);
99-
ZEND_FUNCTION(Async_awaitAnyOfOrFail);
100-
ZEND_FUNCTION(Async_awaitAnyOf);
95+
ZEND_FUNCTION(Async_await_any_or_fail);
96+
ZEND_FUNCTION(Async_await_first_success);
97+
ZEND_FUNCTION(Async_await_all_or_fail);
98+
ZEND_FUNCTION(Async_await_all);
99+
ZEND_FUNCTION(Async_await_any_of_or_fail);
100+
ZEND_FUNCTION(Async_await_any_of);
101101
ZEND_FUNCTION(Async_delay);
102102
ZEND_FUNCTION(Async_timeout);
103-
ZEND_FUNCTION(Async_currentContext);
104-
ZEND_FUNCTION(Async_coroutineContext);
105-
ZEND_FUNCTION(Async_currentCoroutine);
106-
ZEND_FUNCTION(Async_rootContext);
107-
ZEND_FUNCTION(Async_getCoroutines);
108-
ZEND_FUNCTION(Async_gracefulShutdown);
103+
ZEND_FUNCTION(Async_current_context);
104+
ZEND_FUNCTION(Async_coroutine_context);
105+
ZEND_FUNCTION(Async_current_coroutine);
106+
ZEND_FUNCTION(Async_root_context);
107+
ZEND_FUNCTION(Async_get_coroutines);
108+
ZEND_FUNCTION(Async_graceful_shutdown);
109109
ZEND_METHOD(Async_Timeout, __construct);
110110

111111
static const zend_function_entry ext_functions[] = {
112112
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "spawn"), zif_Async_spawn, arginfo_Async_spawn, 0, NULL, NULL)
113-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "spawnWith"), zif_Async_spawnWith, arginfo_Async_spawnWith, 0, NULL, NULL)
113+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "spawn_with"), zif_Async_spawn_with, arginfo_Async_spawn_with, 0, NULL, NULL)
114114
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "suspend"), zif_Async_suspend, arginfo_Async_suspend, 0, NULL, NULL)
115115
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "protect"), zif_Async_protect, arginfo_Async_protect, 0, NULL, NULL)
116116
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await"), zif_Async_await, arginfo_Async_await, 0, NULL, NULL)
117-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "awaitAnyOrFail"), zif_Async_awaitAnyOrFail, arginfo_Async_awaitAnyOrFail, 0, NULL, NULL)
118-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "awaitFirstSuccess"), zif_Async_awaitFirstSuccess, arginfo_Async_awaitFirstSuccess, 0, NULL, NULL)
119-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "awaitAllOrFail"), zif_Async_awaitAllOrFail, arginfo_Async_awaitAllOrFail, 0, NULL, NULL)
120-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "awaitAll"), zif_Async_awaitAll, arginfo_Async_awaitAll, 0, NULL, NULL)
121-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "awaitAnyOfOrFail"), zif_Async_awaitAnyOfOrFail, arginfo_Async_awaitAnyOfOrFail, 0, NULL, NULL)
122-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "awaitAnyOf"), zif_Async_awaitAnyOf, arginfo_Async_awaitAnyOf, 0, NULL, NULL)
117+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await_any_or_fail"), zif_Async_await_any_or_fail, arginfo_Async_await_any_or_fail, 0, NULL, NULL)
118+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await_first_success"), zif_Async_await_first_success, arginfo_Async_await_first_success, 0, NULL, NULL)
119+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await_all_or_fail"), zif_Async_await_all_or_fail, arginfo_Async_await_all_or_fail, 0, NULL, NULL)
120+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await_all"), zif_Async_await_all, arginfo_Async_await_all, 0, NULL, NULL)
121+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await_any_of_or_fail"), zif_Async_await_any_of_or_fail, arginfo_Async_await_any_of_or_fail, 0, NULL, NULL)
122+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "await_any_of"), zif_Async_await_any_of, arginfo_Async_await_any_of, 0, NULL, NULL)
123123
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "delay"), zif_Async_delay, arginfo_Async_delay, 0, NULL, NULL)
124124
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "timeout"), zif_Async_timeout, arginfo_Async_timeout, 0, NULL, NULL)
125-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "currentContext"), zif_Async_currentContext, arginfo_Async_currentContext, 0, NULL, NULL)
126-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "coroutineContext"), zif_Async_coroutineContext, arginfo_Async_coroutineContext, 0, NULL, NULL)
127-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "currentCoroutine"), zif_Async_currentCoroutine, arginfo_Async_currentCoroutine, 0, NULL, NULL)
128-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "rootContext"), zif_Async_rootContext, arginfo_Async_rootContext, 0, NULL, NULL)
129-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "getCoroutines"), zif_Async_getCoroutines, arginfo_Async_getCoroutines, 0, NULL, NULL)
130-
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "gracefulShutdown"), zif_Async_gracefulShutdown, arginfo_Async_gracefulShutdown, 0, NULL, NULL)
125+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "current_context"), zif_Async_current_context, arginfo_Async_current_context, 0, NULL, NULL)
126+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "coroutine_context"), zif_Async_coroutine_context, arginfo_Async_coroutine_context, 0, NULL, NULL)
127+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "current_coroutine"), zif_Async_current_coroutine, arginfo_Async_current_coroutine, 0, NULL, NULL)
128+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "root_context"), zif_Async_root_context, arginfo_Async_root_context, 0, NULL, NULL)
129+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "get_coroutines"), zif_Async_get_coroutines, arginfo_Async_get_coroutines, 0, NULL, NULL)
130+
ZEND_RAW_FENTRY(ZEND_NS_NAME("Async", "graceful_shutdown"), zif_Async_graceful_shutdown, arginfo_Async_graceful_shutdown, 0, NULL, NULL)
131131
ZEND_FE_END
132132
};
133133

0 commit comments

Comments
 (0)