iliaa           Sun Feb 24 16:08:32 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  
  Fixed bug #44200 (A crash in PDO when no bound targets exists and yet 
  bound parameters are present)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.38.2.24.2.11&r2=1.118.2.38.2.24.2.12&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.11 
php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.12
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.11     Wed Feb 20 03:11:43 2008
+++ php-src/ext/pdo/pdo_stmt.c  Sun Feb 24 16:08:32 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.11 2008/02/20 03:11:43 iliaa Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.12 2008/02/24 16:08:32 iliaa Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -166,6 +166,10 @@
 
        ht = stmt->bound_params;
 
+       if (ht && !stmt->bound_param_map) {
+               return 0;
+       }
+
 iterate:
        if (ht) {
                zend_hash_internal_pointer_reset(ht);

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

Reply via email to