summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/php/weechat-php-api.c4
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)