iliaa           Tue Aug  1 16:31:29 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pdo_pgsql      pgsql_statement.c 
    /php-src    NEWS 
  Log:
  Fixed bug #38168 (Crash in pdo_pgsql on missing bound parameters).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/pgsql_statement.c?r1=1.31.2.12.2.1&r2=1.31.2.12.2.2&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_statement.c
diff -u php-src/ext/pdo_pgsql/pgsql_statement.c:1.31.2.12.2.1 
php-src/ext/pdo_pgsql/pgsql_statement.c:1.31.2.12.2.2
--- php-src/ext/pdo_pgsql/pgsql_statement.c:1.31.2.12.2.1       Mon May  8 
14:33:00 2006
+++ php-src/ext/pdo_pgsql/pgsql_statement.c     Tue Aug  1 16:31:29 2006
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pgsql_statement.c,v 1.31.2.12.2.1 2006/05/08 14:33:00 iliaa Exp $ */
+/* $Id: pgsql_statement.c,v 1.31.2.12.2.2 2006/08/01 16:31:29 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -247,16 +247,16 @@
                        case PDO_PARAM_EVT_EXEC_PRE:
                                if (!S->param_values) {
                                        S->param_values = ecalloc(
-                                                       
zend_hash_num_elements(stmt->bound_params),
+                                                       
zend_hash_num_elements(stmt->bound_param_map),
                                                        sizeof(char*));
                                        S->param_lengths = ecalloc(
-                                                       
zend_hash_num_elements(stmt->bound_params),
+                                                       
zend_hash_num_elements(stmt->bound_param_map),
                                                        sizeof(int));
                                        S->param_formats = ecalloc(
-                                                       
zend_hash_num_elements(stmt->bound_params),
+                                                       
zend_hash_num_elements(stmt->bound_param_map),
                                                        sizeof(int));
                                        S->param_types = ecalloc(
-                                                       
zend_hash_num_elements(stmt->bound_params),
+                                                       
zend_hash_num_elements(stmt->bound_param_map),
                                                        sizeof(Oid));
                                }
                                if (param->paramno >= 0) {
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.173&r2=1.2027.2.547.2.174&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.173 php-src/NEWS:1.2027.2.547.2.174
--- php-src/NEWS:1.2027.2.547.2.173     Tue Aug  1 13:28:03 2006
+++ php-src/NEWS        Tue Aug  1 16:31:29 2006
@@ -50,6 +50,7 @@
 - Fixed bug #38194 (ReflectionClass::isSubclassOf() returns TRUE for the class
   itself). (Ilia)
 - Fixed bug #38173 (Freeing nested cursors causes OCI8 to segfault). (Tony)
+- Fixed bug #38168 (Crash in pdo_pgsql on missing bound parameters). (Ilia)
 - Fixed bug #38132 (ReflectionClass::getStaticProperties() retains \0 in key
   names). (Ilia)
 - Fixed bug #38047 ("file" and "line" sometimes not set in backtrace from

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

Reply via email to