summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pgsql/pgsql.c6
1 files 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;