diff options
author | Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> | 2023-01-10 11:07:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 11:07:49 +0100 |
commit | 2329e6ec5f2336ba59e39d971de0e7b93f1c59ff (patch) | |
tree | 8c2d53a61375163b2edb7280dc91080c5460a8e2 | |
parent | b5069a6caf419207bb15a0c397e7a3b88bd9e5e5 (diff) | |
parent | 509a0fdd12870d0bf5b4c1ef7d1f7f1d0fd686b1 (diff) | |
download | uwsgi-2329e6ec5f2336ba59e39d971de0e7b93f1c59ff.tar.gz |
Merge pull request #2516 from niol/master
fix build with PHP >= 8.2
-rw-r--r-- | plugins/php/php_plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/php/php_plugin.c b/plugins/php/php_plugin.c index af797645..b3efa006 100644 --- a/plugins/php/php_plugin.c +++ b/plugins/php/php_plugin.c @@ -617,7 +617,11 @@ static void activate_user_config(const char *filename, const char *doc_root, siz static int php_uwsgi_startup(sapi_module_struct *sapi_module) { +#if ((PHP_MAJOR_VERSION >= 8) && (PHP_MINOR_VERSION >= 2)) + if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry)==FAILURE) { +#else if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry, 1)==FAILURE) { +#endif return FAILURE; } else { return SUCCESS; |