diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-24 10:58:10 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-14 17:23:31 +0200 |
commit | 93640db4d5ca4e41079577a03cf969fa6c63d533 (patch) | |
tree | 62062db09fc295b66a5d7dca3f1254406306af3f /Zend/zend_execute_API.c | |
parent | 4bc1cf29287fd73ced0f93f713fe93e421465cd7 (diff) | |
download | php-git-93640db4d5ca4e41079577a03cf969fa6c63d533.tar.gz |
Improve error message for deprecated methods
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 0c3917163d..0a7a7e3b15 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -722,10 +722,8 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) / func, fci->param_count, object_or_called_scope); if (UNEXPECTED(func->common.fn_flags & ZEND_ACC_DEPRECATED)) { - zend_error(E_DEPRECATED, "Function %s%s%s() is deprecated", - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); + zend_deprecated_function(func); + if (UNEXPECTED(EG(exception))) { zend_vm_stack_free_call_frame(call); if (EG(current_execute_data) == &dummy_execute_data) { |