bjori Tue Oct 3 15:21:47 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pgsql pgsql.c Log: 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.331.2.13.2.5&r2=1.331.2.13.2.6&diff_format=u Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.331.2.13.2.5 php-src/ext/pgsql/pgsql.c:1.331.2.13.2.6 --- php-src/ext/pgsql/pgsql.c:1.331.2.13.2.5 Fri Sep 15 19:47:50 2006 +++ php-src/ext/pgsql/pgsql.c Tue Oct 3 15:21:47 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.331.2.13.2.5 2006/09/15 19:47:50 iliaa Exp $ */ +/* $Id: pgsql.c,v 1.331.2.13.2.6 2006/10/03 15:21:47 bjori Exp $ */ #include <stdlib.h> @@ -3997,7 +3997,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) { @@ -4087,7 +4087,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; @@ -4141,7 +4141,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