]> granicus.if.org Git - php/commitdiff
- MFB: Complete the fix for #46274, and tests
authorFelipe Pena <felipe@php.net>
Sun, 12 Oct 2008 13:03:31 +0000 (13:03 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 12 Oct 2008 13:03:31 +0000 (13:03 +0000)
ext/pdo/pdo_stmt.c

index 664cab0792e18e8385451815d569d5f5a2cc1ef6..d7a744c19f65155e94864d5a569dda1a10dc637a 100755 (executable)
@@ -587,6 +587,8 @@ 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) {
+                               ZVAL_EMPTY_STRING(dest);
                        } else if (value_len == 0) {
                                if (stmt->dbh->stringify || new_type == PDO_PARAM_STR) {
                                        char *buf = NULL;