From: Felipe Pena Date: Sun, 12 Oct 2008 13:46:51 +0000 (+0000) Subject: - MFB: Removed unnecessary strcmp call (thanks Tony) X-Git-Tag: php-5.2.7RC2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=736efdcfc108481235d927a7d99101fbb232a8fd;p=php - MFB: Removed unnecessary strcmp call (thanks Tony) --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index d7a744c19f..17e7687c89 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -587,7 +587,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) {