From 3e1a5b4447d2af3ebb186636f46cabd81252d0b1 Mon Sep 17 00:00:00 2001 From: Adam Saponara Date: Tue, 28 Jun 2022 23:36:05 -0400 Subject: [PATCH] php: Adjust API for PHP 8.2 --- src/plugins/php/weechat-php.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c index 115d821ff..72a2c1036 100644 --- a/src/plugins/php/weechat-php.c +++ b/src/plugins/php/weechat-php.c @@ -1237,7 +1237,11 @@ weechat_php_signal_script_action_cb (const void *pointer, void *data, int php_weechat_startup (sapi_module_struct *sapi_module) { +#if PHP_VERSION_ID >= 80200 + return php_module_startup (sapi_module, &weechat_module_entry); +#else return php_module_startup (sapi_module, &weechat_module_entry, 1); +#endif } size_t