Skip to content

Commit 1fa4663

Browse files
committed
* Change --enable-experimental-async-api to --disable-async-api.
1 parent a8782ec commit 1fa4663

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

configure.ac

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

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

10651066
dnl Extension configuration.
10661067
dnl ----------------------------------------------------------------------------
@@ -1801,7 +1802,7 @@ PHP_ADD_SOURCES([Zend], m4_normalize([
18011802
]),
18021803
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $fiber_asm_cflag])
18031804

1804-
if test "$PHP_EXPERIMENTAL_ASYNC_API" = "yes"; then
1805+
if test "$PHP_ASYNC_API" = "yes"; then
18051806
PHP_ADD_SOURCES([Zend], m4_normalize([zend_async_API.c]),
18061807
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $fiber_asm_cflag])
18071808
fi

win32/build/config.w32

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,8 @@ 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
}

0 commit comments

Comments
 (0)