diff options
author | Adam Saponara <as@php.net> | 2022-06-28 23:49:12 -0400 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-06-30 20:33:45 +0200 |
commit | 24fe646c4e64fa3f6b45272802895c8f91e9b9b6 (patch) | |
tree | ec3efc934198249195eb32456bf3ff2995a03045 /src/plugins/php | |
parent | 8cf58481163a0b7bd6a79b0a16f8f9a37dd72362 (diff) | |
download | weechat-24fe646c4e64fa3f6b45272802895c8f91e9b9b6.zip |
php: Deprecate `forget_*` functions in PHP 8+
These functions don't work with PHP 8+ and also don't seem to be
necessary anymore when reloading scripts.
Diffstat (limited to 'src/plugins/php')
-rw-r--r-- | src/plugins/php/weechat-php-api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php-api.c b/src/plugins/php/weechat-php-api.c index f365bfa1e..6d47fbea6 100644 --- a/src/plugins/php/weechat-php-api.c +++ b/src/plugins/php/weechat-php-api.c @@ -5446,6 +5446,9 @@ API_FUNC(upgrade_close) static void forget_hash_entry (HashTable *ht, INTERNAL_FUNCTION_PARAMETERS) { +#if PHP_VERSION_ID >= 80000 + RETURN_FALSE; +#else zend_string *class_name; zend_string *lc_name; int re; @@ -5469,6 +5472,7 @@ forget_hash_entry (HashTable *ht, INTERNAL_FUNCTION_PARAMETERS) RETURN_TRUE; } RETURN_FALSE; +#endif } PHP_FUNCTION(forget_class) |