Skip to content

Commit

Permalink
fix one bug
Browse files Browse the repository at this point in the history
fix one bug
  • Loading branch information
wenjun1055 committed Mar 14, 2013
1 parent 72c0093 commit e4d5fa0
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 @@ -183,7 +183,7 @@ PHP_METHOD(yaf_config_simple, set) {
return;
}

if (Z_TYPE_P(name) != IS_STRING || Z_TYPE_P(name) != IS_STRING) {
if (Z_TYPE_P(name) != IS_STRING || Z_TYPE_P(value) != IS_STRING) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Expect a string key name");
RETURN_FALSE;
}
Expand Down

0 comments on commit e4d5fa0

Please sign in to comment.