Skip to content

Commit 40936bf

Browse files
committed
Merge branch 'true-async-api' into true-async
# Conflicts: # configure.ac
2 parents ea537f6 + 8f15592 commit 40936bf

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

configure.ac

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,16 +1051,16 @@ PHP_ARG_ENABLE([undefined-sanitizer],,
10511051
[Enable undefined sanitizer])],
10521052
[no],
10531053
[no])
1054-
PHP_ARG_ENABLE([experimental-async-api],,
1055-
[AS_HELP_STRING([--enable-experimental-async-api],
1056-
[Enable experimental async API support])],
1057-
[no],
1054+
PHP_ARG_ENABLE([async-api],,
1055+
[AS_HELP_STRING([--disable-async-api],
1056+
[Disable async API support])],
1057+
[yes],
10581058
[no])
10591059

1060-
if test "$PHP_EXPERIMENTAL_ASYNC_API" = "yes"; then
1061-
AC_DEFINE([PHP_ASYNC_API], 1, [Enable async API support])
1062-
PHP_ASYNC_API="yes"
1063-
fi
1060+
AS_VAR_IF([PHP_ASYNC_API], [yes], [
1061+
AC_DEFINE([PHP_ASYNC_API], [1], [Define to 1 if async API support is enabled.])
1062+
])
1063+
10641064

10651065
dnl Extension configuration.
10661066
dnl ----------------------------------------------------------------------------
@@ -1806,7 +1806,7 @@ PHP_ADD_SOURCES([Zend], m4_normalize([
18061806
]),
18071807
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $fiber_asm_cflag])
18081808

1809-
if test "$PHP_EXPERIMENTAL_ASYNC_API" = "yes"; then
1809+
if test "$PHP_ASYNC_API" = "yes"; then
18101810
PHP_ADD_SOURCES([Zend], m4_normalize([zend_async_API.c]),
18111811
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $fiber_asm_cflag])
18121812
fi

win32/build/config.w32

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,9 @@ ARG_ENABLE('snapshot-build', 'Build a snapshot: turns on everything it can and i
408408

409409
ARG_ENABLE('vs-link-compat', 'Allow linking of libraries built with compatible versions of VS toolset', 'yes');
410410

411-
ARG_ENABLE("experimental-async-api", "Enable experimental async API support", "no");
411+
ARG_ENABLE("async-api", "Disable async API support", "yes");
412412

413-
if (PHP_EXPERIMENTAL_ASYNC_API == "yes") {
414-
AC_DEFINE('PHP_ASYNC_API', 1, 'Enable experimental async API support');
413+
if (PHP_ASYNC_API == "yes") {
415414
ADD_SOURCES("Zend", "zend_async_API.c");
416415
ADD_SOURCES("main", "network_async.c");
417416
}

0 commit comments

Comments
 (0)