diff options
author | Hannes Magnusson <bjori@php.net> | 2006-10-03 15:21:47 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2006-10-03 15:21:47 +0000 |
commit | 9bff1e24b54d75f97b352cf9efc990f54b185c0f (patch) | |
tree | 8fcf8562e7889e5ee2495fff29ffe0f8db5d2edb | |
parent | a7ccaa5ec71679c1efce6146de8fb03ac479b0cf (diff) | |
download | php-git-9bff1e24b54d75f97b352cf9efc990f54b185c0f.tar.gz |
pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not throw "Wrong parameter count"
-rw-r--r-- | ext/pgsql/pgsql.c | 6 |
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; |