felipe          Sun Oct 12 13:46:10 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  - 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.24.2.26&r2=1.118.2.38.2.24.2.27&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.26 
php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.27
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.26     Sun Oct 12 13:01:31 2008
+++ php-src/ext/pdo/pdo_stmt.c  Sun Oct 12 13:46:10 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.26 2008/10/12 13:01:31 felipe Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.27 2008/10/12 13:46:10 felipe Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -601,7 +601,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