@@ -1051,16 +1051,16 @@ PHP_ARG_ENABLE([undefined-sanitizer],,
1051
1051
[ Enable undefined sanitizer] ) ] ,
1052
1052
[ no] ,
1053
1053
[ 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 ] ,
1058
1058
[ no] )
1059
1059
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
+
1064
1064
1065
1065
dnl Extension configuration.
1066
1066
dnl ----------------------------------------------------------------------------
@@ -1806,7 +1806,7 @@ PHP_ADD_SOURCES([Zend], m4_normalize([
1806
1806
] ) ,
1807
1807
[ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $fiber_asm_cflag] )
1808
1808
1809
- if test "$PHP_EXPERIMENTAL_ASYNC_API " = "yes"; then
1809
+ if test "$PHP_ASYNC_API " = "yes"; then
1810
1810
PHP_ADD_SOURCES([ Zend] , m4_normalize ( [ zend_async_API.c] ) ,
1811
1811
[ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $fiber_asm_cflag] )
1812
1812
fi
0 commit comments