summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2009-04-23 13:26:10 +0000
committerMatteo Beccati <mbeccati@php.net>2009-04-23 13:26:10 +0000
commit0b576f6f1135479bbc466dbb29da5a352d853161 (patch)
treeb0288acc381f5ed85d9848df4a3656e39ba7f6c1 /ext/pdo
parentb7747cf30c7d79ba20030d4dc9b8d897c9d1400c (diff)
downloadphp-git-0b576f6f1135479bbc466dbb29da5a352d853161.tar.gz
MFH:
- Reverted previous fix for bug #46274 and properly fixed it - Fixed bug #48060 # Also added tests for pdo_oci as it's the only other driver currently # using streams: no regression found
Diffstat (limited to 'ext/pdo')
-rwxr-xr-xext/pdo/pdo_stmt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 838a235169..0800d23d29 100755
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -589,9 +589,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 (value[0] == '\0') {
- ZVAL_EMPTY_STRING(dest);
} else if (value_len == 0) {
+ /* Warning, empty strings need to be passed as stream */
if (stmt->dbh->stringify || new_type == PDO_PARAM_STR) {
char *buf = NULL;
size_t len;