From: Felipe Pena Date: Sun, 12 Oct 2008 13:03:31 +0000 (+0000) Subject: - MFB: Complete the fix for #46274, and tests X-Git-Tag: php-5.2.7RC2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5adf80421373cec5b99cf3dfef4a6382b963f4ad;p=php - MFB: Complete the fix for #46274, and tests --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 664cab0792..d7a744c19f 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -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;