From 6701c6c4d225fa9e8b6b528bbad1277cb8016e62 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 26 Jun 2024 16:57:21 +0800 Subject: [PATCH] Fixed arginfo mismatch --- configs/yaf_config_simple.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/configs/yaf_config_simple.c b/configs/yaf_config_simple.c index 4ede4c1e..400bd1da 100644 --- a/configs/yaf_config_simple.c +++ b/configs/yaf_config_simple.c @@ -135,14 +135,11 @@ PHP_METHOD(yaf_config_simple, offsetUnset) { if (conf->config) { if (Z_TYPE_P(offset) == IS_STRING) { zend_hash_del(conf->config, Z_STR_P(offset)); - RETURN_TRUE; } else if (Z_TYPE_P(offset) == IS_LONG) { zend_hash_index_del(conf->config, Z_LVAL_P(offset)); - RETURN_TRUE; } } - - RETURN_FALSE; + return; } /* }}} */