From 96297ff0c7d98daa8e59d9ff702a1fda5c32bce1 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 3 Oct 2006 15:22:54 +0000 Subject: [PATCH] MFB: 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 aaf5477004..c7f53f2c4e 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3984,7 +3984,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) { @@ -4074,7 +4074,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; @@ -4128,7 +4128,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