diff options
author | Remi Collet <remi@remirepo.net> | 2022-10-17 16:45:29 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-10-17 16:45:29 +0200 |
commit | 6e5d7189a9e051f5ead5082ada51c876e99bac74 (patch) | |
tree | 2df75a084cd074913aa2edc6ad4a6d973efa3a26 /uwsgi_fix_php82.patch | |
parent | acaddc96ccc610d6fe4f1a24c89915c1974009d1 (diff) |
add upstream patch for PHP 8.2
Diffstat (limited to 'uwsgi_fix_php82.patch')
-rw-r--r-- | uwsgi_fix_php82.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/uwsgi_fix_php82.patch b/uwsgi_fix_php82.patch new file mode 100644 index 0000000..66a8e49 --- /dev/null +++ b/uwsgi_fix_php82.patch @@ -0,0 +1,15 @@ +diff -uNr a/plugins/php/php_plugin.c b/plugins/php/php_plugin.c +--- a/plugins/php/php_plugin.c 2022-10-06 19:52:07.237882916 +0200 ++++ b/plugins/php/php_plugin.c 2022-10-06 19:56:29.232418542 +0200 +@@ -607,7 +607,11 @@ + static int php_uwsgi_startup(sapi_module_struct *sapi_module) + { + ++#if PHP_VERSION_ID >= 80200 ++ 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; |