Skip to content

Commit 7b5ce94

Browse files
committed
% remove PHP_ASYNC_API ifdef
1 parent 26f280a commit 7b5ce94

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

Zend/zend_async_API.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@ void zend_async_globals_ctor(void)
231231
#endif
232232
}
233233

234-
void zend_async_init(void)
235-
{
236-
}
237-
238234
void zend_async_globals_dtor(void)
239235
{
240236
#ifdef ZTS

Zend/zend_async_API.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,6 @@ BEGIN_EXTERN_C()
12611261
ZEND_API bool zend_async_is_enabled(void);
12621262
ZEND_API bool zend_scheduler_is_enabled(void);
12631263

1264-
void zend_async_init(void);
12651264
void zend_async_api_shutdown(void);
12661265
void zend_async_globals_ctor(void);
12671266
void zend_async_globals_dtor(void);

main/main.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@
8585
#include "rfc1867.h"
8686

8787
#include "main_arginfo.h"
88-
89-
#ifdef PHP_ASYNC_API
9088
#include "zend_async_API.h"
91-
#endif
9289
/* }}} */
9390

9491
PHPAPI int (*php_register_internal_extensions_func)(void) = php_register_internal_extensions;
@@ -146,9 +143,7 @@ PHPAPI char *php_get_version(sapi_module_struct *sapi_module)
146143
#ifdef HAVE_GCOV
147144
" GCOV"
148145
#endif
149-
#ifdef PHP_ASYNC_API
150146
" " ZEND_ASYNC_API
151-
#endif
152147
);
153148
smart_string_appends(&version_info, "Copyright (c) The PHP Group\n");
154149
if (php_build_provider()) {
@@ -1935,9 +1930,7 @@ void php_request_shutdown(void *dummy)
19351930
zend_call_destructors();
19361931
} zend_end_try();
19371932

1938-
#ifdef PHP_ASYNC_API
19391933
ZEND_ASYNC_RUN_SCHEDULER_AFTER_MAIN();
1940-
#endif
19411934

19421935
/* 3. Flush all output buffers */
19431936
zend_try {
@@ -2186,10 +2179,8 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
21862179
php_startup_ticks();
21872180
#endif
21882181
gc_globals_ctor();
2189-
#ifdef PHP_ASYNC_API
21902182
zend_async_globals_ctor();
21912183
zend_async_init_internal_context_api();
2192-
#endif
21932184

21942185
zend_observer_startup();
21952186
#if ZEND_DEBUG
@@ -2515,9 +2506,7 @@ void php_module_shutdown(void)
25152506

25162507
module_initialized = false;
25172508

2518-
#ifdef PHP_ASYNC_API
25192509
zend_async_api_shutdown();
2520-
#endif
25212510

25222511
#ifndef ZTS
25232512
core_globals_dtor(&core_globals);

0 commit comments

Comments
 (0)