Skip to content

Commit b8624e7

Browse files
committed
Fix bugs php#7301, php#6827
1 parent d3aff0f commit b8624e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/msql/php_msql.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,11 +849,10 @@ PHP_FUNCTION(msql_result)
849849
return_value->value.str.len = (sql_row[field_offset]?strlen(sql_row[field_offset]):0);
850850
return_value->value.str.val = (char *) safe_estrndup(sql_row[field_offset],return_value->value.str.len);
851851
}
852+
return_value->type = IS_STRING;
852853
} else {
853854
ZVAL_FALSE(return_value);
854855
}
855-
856-
return_value->type = IS_STRING;
857856
}
858857
/* }}} */
859858

0 commit comments

Comments
 (0)