diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-03-18 22:44:02 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-03-23 18:59:04 +0100 |
commit | 01b266aac405c3c4c677d46f348dc6b227b69f7f (patch) | |
tree | d1c68e09fa5f200542b2424c084bc25bb2a5397f /ext/mysqli/mysqli.c | |
parent | d7b73de8c9299ef1e7c55f22449dff3e0833f68e (diff) | |
download | php-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.c | 2 |
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(); } } |