iliaa           Tue Feb 26 00:14:25 2008 UTC

  Modified files:              
    /php-src/ext/pdo    pdo_stmt.c 
    /php-src/ext/pdo_pgsql      pgsql_statement.c 
  Log:
  
  MFB: Better fix for bug #44189
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.187&r2=1.188&diff_format=u
Index: php-src/ext/pdo/pdo_stmt.c
diff -u php-src/ext/pdo/pdo_stmt.c:1.187 php-src/ext/pdo/pdo_stmt.c:1.188
--- php-src/ext/pdo/pdo_stmt.c:1.187    Sun Feb 24 16:09:13 2008
+++ php-src/ext/pdo/pdo_stmt.c  Tue Feb 26 00:14:25 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.187 2008/02/24 16:09:13 iliaa Exp $ */
+/* $Id: pdo_stmt.c,v 1.188 2008/02/26 00:14:25 iliaa Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -142,10 +142,6 @@
 
        ht = stmt->bound_params;
 
-       if (ht && !stmt->bound_param_map) {
-               return 0;
-       }
-
 iterate:
        if (ht) {
                zend_hash_internal_pointer_reset(ht);
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/pgsql_statement.c?r1=1.46&r2=1.47&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_statement.c
diff -u php-src/ext/pdo_pgsql/pgsql_statement.c:1.46 
php-src/ext/pdo_pgsql/pgsql_statement.c:1.47
--- php-src/ext/pdo_pgsql/pgsql_statement.c:1.46        Mon Dec 31 07:12:13 2007
+++ php-src/ext/pdo_pgsql/pgsql_statement.c     Tue Feb 26 00:14:25 2008
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pgsql_statement.c,v 1.46 2007/12/31 07:12:13 sebastian Exp $ */
+/* $Id: pgsql_statement.c,v 1.47 2008/02/26 00:14:25 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -183,6 +183,9 @@
                                break;
 
                        case PDO_PARAM_EVT_EXEC_PRE:
+                               if (!stmt->bound_param_map) {
+                                       return 0;
+                               }
                                if (!S->param_values) {
                                        S->param_values = ecalloc(
                                                        
zend_hash_num_elements(stmt->bound_param_map),

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

Reply via email to