felipe          Sun Oct 12 13:01:31 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/pdo_pgsql/tests        bug46274.phpt bug46274_2.phpt 

  Modified files:              
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  - 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.24.2.25&r2=1.118.2.38.2.24.2.26&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.24.2.25 
php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.26
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.25     Fri Oct 10 19:35:34 2008
+++ php-src/ext/pdo/pdo_stmt.c  Sun Oct 12 13:01:31 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.25 2008/10/10 19:35:34 felipe Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.26 2008/10/12 13:01:31 felipe Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -601,6 +601,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;

http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/tests/bug46274.phpt?view=markup&rev=1.1
Index: php-src/ext/pdo_pgsql/tests/bug46274.phpt
+++ php-src/ext/pdo_pgsql/tests/bug46274.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/tests/bug46274_2.phpt?view=markup&rev=1.1
Index: php-src/ext/pdo_pgsql/tests/bug46274_2.phpt
+++ php-src/ext/pdo_pgsql/tests/bug46274_2.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to