Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
fix a bug
  • Loading branch information
wenjun1055 committed Aug 9, 2013
1 parent f6b910c commit 0131e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs/yaf_config_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0131e02

Please sign in to comment.