summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-03-18 22:44:02 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-03-23 18:59:04 +0100
commit01b266aac405c3c4c677d46f348dc6b227b69f7f (patch)
treed1c68e09fa5f200542b2424c084bc25bb2a5397f /ext/mysqli/mysqli.c
parentd7b73de8c9299ef1e7c55f22449dff3e0833f68e (diff)
downloadphp-git-01b266aac405c3c4c677d46f348dc6b227b69f7f.tar.gz
Improve error messages of various extensions
Closes GH-5278
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index cbfbb451bc..5d5413a593 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -1272,7 +1272,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
* single value is an array. Also we'd have to make that one
* argument passed by reference.
*/
- zend_throw_exception(zend_ce_exception, "Parameter ctor_params must be an array", 0);
+ zend_argument_error(zend_ce_exception, 3, "must be of type array, %s given", zend_zval_type_name(ctor_params));
RETURN_THROWS();
}
}