diff options
author | Felipe Pena <felipe@php.net> | 2008-10-12 13:03:31 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-10-12 13:03:31 +0000 |
commit | 5adf80421373cec5b99cf3dfef4a6382b963f4ad (patch) | |
tree | 1fcffd44722eb794f820c83ef9668782d1806240 | |
parent | 9c16e1d9d2dbfe46016f5e2bbc5c0c85b82caef6 (diff) | |
download | php-git-5adf80421373cec5b99cf3dfef4a6382b963f4ad.tar.gz |
- MFB: Complete the fix for #46274, and tests
-rwxr-xr-x | ext/pdo/pdo_stmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |