bjori Tue Oct 3 15:22:54 2006 UTC
Modified files:
/php-src/ext/pgsql pgsql.c
Log:
MFB: pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not
throw "Wrong parameter count"
http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.354&r2=1.355&diff_format=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.354 php-src/ext/pgsql/pgsql.c:1.355
--- php-src/ext/pgsql/pgsql.c:1.354 Fri Sep 15 19:48:55 2006
+++ php-src/ext/pgsql/pgsql.c Tue Oct 3 15:22:54 2006
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.354 2006/09/15 19:48:55 iliaa Exp $ */
+/* $Id: pgsql.c,v 1.355 2006/10/03 15:22:54 bjori Exp $ */
#include <stdlib.h>
@@ -3984,7 +3984,7 @@
int leftover = 0;
if (zend_get_parameters_ex(3, &pgsql_link, &query, &pv_param_arr) ==
FAILURE) {
- return;
+ WRONG_PARAM_COUNT;
}
if (pgsql_link == NULL && id == -1) {
@@ -4074,7 +4074,7 @@
int leftover = 0;
if (zend_get_parameters_ex(3, &pgsql_link, &stmtname, &query) ==
FAILURE) {
- return;
+ WRONG_PARAM_COUNT;
}
if (pgsql_link == NULL && id == -1) {
RETURN_FALSE;
@@ -4128,7 +4128,7 @@
int leftover = 0;
if (zend_get_parameters_ex(3, &pgsql_link, &stmtname,
&pv_param_arr)==FAILURE) {
- return;
+ WRONG_PARAM_COUNT;
}
if (pgsql_link == NULL && id == -1) {
RETURN_FALSE;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php