Change argument error message format

Closes GH-5211
This commit is contained in:
Máté Kocsis 2020-02-25 20:58:33 +01:00
parent c7094d8926
commit 960318ed95
No known key found for this signature in database
GPG key ID: FD055E41728BF310
357 changed files with 1168 additions and 1158 deletions

View file

@ -751,7 +751,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
const char *arg_name = get_function_arg_name(func, i + 1);
zend_error(E_WARNING,
"%s%s%s() expects argument #%d%s%s%s to be passed by reference, value given",
"%s%s%s(): Argument #%d%s%s%s must be passed by reference, value given",
func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
func->common.scope ? "::" : "",
ZSTR_VAL(func->common.function_name),