diff --git a/configs/yaf_config_simple.c b/configs/yaf_config_simple.c index 11796745..fc3b412a 100644 --- a/configs/yaf_config_simple.c +++ b/configs/yaf_config_simple.c @@ -226,7 +226,7 @@ PHP_METHOD(yaf_config_simple, offsetUnset) { return; } - if (Z_TYPE_P(name) != IS_STRING || Z_TYPE_P(name) != IS_STRING) { + if (Z_TYPE_P(name) != IS_STRING || !Z_STRLEN_P(name)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Expect a string key name"); RETURN_FALSE; }