]> granicus.if.org Git - php/commitdiff
- MFB: Removed unnecessary strcmp call (thanks Tony)
authorFelipe Pena <felipe@php.net>
Sun, 12 Oct 2008 13:46:51 +0000 (13:46 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 12 Oct 2008 13:46:51 +0000 (13:46 +0000)
ext/pdo/pdo_stmt.c

index d7a744c19f65155e94864d5a569dda1a10dc637a..17e7687c89f6b086c95ef4637df1045800d66567 100755 (executable)
@@ -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) {