- Removed unnecessary strcmp call (thanks Tony)

This commit is contained in:
Felipe Pena 2008-10-12 13:46:10 +00:00
parent d2d4e044c7
commit e90d487720

View File

@ -601,7 +601,7 @@ static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *typ
case PDO_PARAM_LOB:
if (value == NULL) {
ZVAL_NULL(dest);
} else if (strcmp(value, "") == 0) {
} else if (value[0] == '\0') {
ZVAL_EMPTY_STRING(dest);
} else if (value_len == 0) {
if (stmt->dbh->stringify || new_type == PDO_PARAM_STR) {