From: Marcus Boerger Date: Sun, 13 Mar 2005 13:22:02 +0000 (+0000) Subject: - Actually this is a much better error decription X-Git-Tag: php-5.0.1b1~815 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8db1c2cc54e9ae0a6de6980d0473e499d694f30;p=php - Actually this is a much better error decription --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index e9fd83b25b..200b61708a 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -697,7 +697,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS char *function_name_lc = zend_str_tolower_dup(Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name)); if (zend_hash_find(&calling_scope->function_table, function_name_lc, fci->function_name->value.str.len+1, (void **) &EX(function_state).function)==FAILURE) { efree(function_name_lc); - zend_error(E_ERROR, "Object does not support parent class method calls"); + zend_error(E_ERROR, "Cannot call method %s::%s() or method does not exist", calling_scope->name, Z_STRVAL_P(fci->function_name)); } efree(function_name_lc); }