1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

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.
This commit is contained in:
Adam Saponara
2022-06-28 23:49:12 -04:00
committed by Sébastien Helleu
parent 8cf5848116
commit 24fe646c4e
+4
View File
@@ -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)