felipe          Sun Oct 12 13:46:51 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  - MFB: Removed unnecessary strcmp call (thanks Tony)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.38.2.39&r2=1.118.2.38.2.40&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.39 
php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.40
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.39  Sun Oct 12 13:03:31 2008
+++ php-src/ext/pdo/pdo_stmt.c  Sun Oct 12 13:46:51 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.38.2.39 2008/10/12 13:03:31 felipe Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.38.2.40 2008/10/12 13:46:51 felipe Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -587,7 +587,7 @@
                case PDO_PARAM_LOB:
                        if (value == NULL) {
                                ZVAL_NULL(dest);
-                       } else if (strcmp(value, "") == 0) {
+                       } else if (value[0] == '\0') {
                                ZVAL_EMPTY_STRING(dest);
                        } else if (value_len == 0) {
                                if (stmt->dbh->stringify || new_type == 
PDO_PARAM_STR) {



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

Reply via email to