From: Hannes Magnusson Date: Tue, 3 Oct 2006 15:22:54 +0000 (+0000) Subject: MFB: pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not throw ... X-Git-Tag: RELEASE_1_0_0RC1~1457 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96297ff0c7d98daa8e59d9ff702a1fda5c32bce1;p=php MFB: pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not throw "Wrong parameter count" --- 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;