]> granicus.if.org Git - php/commitdiff
- Actually this is a much better error decription
authorMarcus Boerger <helly@php.net>
Sun, 13 Mar 2005 13:22:02 +0000 (13:22 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 13 Mar 2005 13:22:02 +0000 (13:22 +0000)
Zend/zend_execute_API.c

index e9fd83b25bcb6d81cdfe1db45c42ec5295eebc59..200b61708ab2b9893f971e5e85583b8097b941e2 100644 (file)
@@ -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);
                        }