diff options
author | Adam Saponara <as@php.net> | 2022-06-28 23:36:05 -0400 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-06-30 20:32:20 +0200 |
commit | 3e1a5b4447d2af3ebb186636f46cabd81252d0b1 (patch) | |
tree | 1f55f5403fd47dc9aa6b2114d007e0e8cccbc2f2 /src | |
parent | 1fb82b40622393bb116846e6362e2ff7776779b9 (diff) | |
download | weechat-3e1a5b4447d2af3ebb186636f46cabd81252d0b1.zip |
php: Adjust API for PHP 8.2
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/php/weechat-php.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |