Skip to content

Commit 0d977ee

Browse files
committed
Merge pull request laruence#81 from skaic/master
fix bug (issues laruence#80)
2 parents f8b49a7 + 0bb0d30 commit 0d977ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yaf_application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static int yaf_application_parse_option(zval *options TSRMLS_DC) {
130130
}
131131

132132
if (zend_hash_find(Z_ARRVAL_P(app), ZEND_STRS("directory"), (void **)&ppzval) == FAILURE
133-
|| Z_TYPE_PP(ppzval) != IS_STRING) {
133+
|| Z_TYPE_PP(ppzval) != IS_STRING || Z_STRLEN_PP(ppzval) == 0) {
134134
yaf_trigger_error(YAF_ERR_STARTUP_FAILED TSRMLS_CC, "%s", "Expected a directory entry in application configures");
135135
return FAILURE;
136136
}

0 commit comments

Comments
 (0)