cvs: php-src(PHP_5_2) /ext/pdo pdo_stmt.c

From: Date: Sun, 12 Oct 2008 13:03:31 +0000
Subject: cvs: php-src(PHP_5_2) /ext/pdo pdo_stmt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-53473@lists.php.net to get a copy of this message
felipe Sun Oct 12 13:03:31 2008 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pdo pdo_stmt.c Log: - MFB: Complete the fix for #46274, and tests http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.38.2.38&r2=1.118.2.38.2.39&diff_format=u Index: php-src/ext/pdo/pdo_stmt.c diff -u php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.38 php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.39 --- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.38 Fri Oct 10 19:35:49 2008 +++ php-src/ext/pdo/pdo_stmt.c Sun Oct 12 13:03:31 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdo_stmt.c,v 1.118.2.38.2.38 2008/10/10 19:35:49 felipe Exp $ */ +/* $Id: pdo_stmt.c,v 1.118.2.38.2.39 2008/10/12 13:03:31 felipe Exp $ */ /* The PDO Statement Handle Class */ @@ -587,6 +587,8 @@ 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;

« previous php.cvs (#53473) next »