From 9bff1e24b54d75f97b352cf9efc990f54b185c0f Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 3 Oct 2006 15:21:47 +0000 Subject: [PATCH] pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not throw "Wrong parameter count" --- ext/pgsql/pgsql.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 1d353e8a6d..52e26cde4a 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3997,7 +3997,7 @@ PHP_FUNCTION(pg_send_query_params) 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 @@ PHP_FUNCTION(pg_send_prepare) 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 @@ PHP_FUNCTION(pg_send_execute) 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; -- 2.50.1