cvs: php-src /ext/pdo_pgsql pgsql_statement.c
| From: | Ilia Alshanetsky | Date: | Tue, 01 Aug 2006 16:32:30 +0000 |
| Subject: | cvs: php-src /ext/pdo_pgsql pgsql_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39705@lists.php.net to get a copy of this message | ||
iliaa Tue Aug 1 16:32:30 2006 UTC
Modified files:
/php-src/ext/pdo_pgsql pgsql_statement.c
Log:
MFB: 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.37&r2=1.38&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_statement.c
diff -u php-src/ext/pdo_pgsql/pgsql_statement.c:1.37 php-src/ext/pdo_pgsql/pgsql_statement.c:1.38
--- php-src/ext/pdo_pgsql/pgsql_statement.c:1.37 Mon May 8 14:33:23 2006
+++ php-src/ext/pdo_pgsql/pgsql_statement.c Tue Aug 1 16:32:30 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql_statement.c,v 1.37 2006/05/08 14:33:23 iliaa Exp $ */
+/* $Id: pgsql_statement.c,v 1.38 2006/08/01 16:32:30 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -188,13 +188,13 @@
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));
}