diff options
author | Marcus Boerger <helly@php.net> | 2003-09-02 14:08:59 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-09-02 14:08:59 +0000 |
commit | 9702c70a3501ad800d25bb73c62e1fb30b6d576f (patch) | |
tree | 5c05966f0e71f9a8aaf5b4b09981cdcaa78944d3 /Zend/zend_execute.c | |
parent | 3d6426ee14a38bed1ebbccaf75d8eccfd7d08060 (diff) | |
download | php-git-9702c70a3501ad800d25bb73c62e1fb30b6d576f.tar.gz |
Synch/Unify error messages related to function/method calls
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r-- | Zend/zend_execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index ae957a726a..de31c1c89c 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -2475,7 +2475,7 @@ int zend_init_fcall_by_name_handler(ZEND_OPCODE_HANDLER_ARGS) } if (zend_hash_find(EG(function_table), function_name_strval, function_name_strlen+1, (void **) &function)==FAILURE) { - zend_error(E_ERROR, "Call to undefined function: %s()", function_name_strval); + zend_error(E_ERROR, "Call to undefined function %s()", function_name_strval); } if (!is_const) { @@ -3122,13 +3122,13 @@ int zend_clone_handler(ZEND_OPCODE_HANDLER_ARGS) /* Ensure that if we're calling a private function, we're allowed to do so. */ if (ce != EG(scope)) { - zend_error(E_ERROR, "Call to private __clone from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to private %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : ""); } } else if ((clone->common.fn_flags & ZEND_ACC_PROTECTED)) { /* Ensure that if we're calling a protected function, we're allowed to do so. */ if (!zend_check_protected(clone->common.scope, EG(scope))) { - zend_error(E_ERROR, "Call to protected __clone from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to protected %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : ""); } } } |