]> granicus.if.org Git - php/commitdiff
improve error message
authorAntony Dovgal <tony2001@php.net>
Thu, 3 Aug 2006 10:52:15 +0000 (10:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 3 Aug 2006 10:52:15 +0000 (10:52 +0000)
Zend/zend_vm_def.h
Zend/zend_vm_execute.h

index 63b849138572814013f0ffaa09fe3e282dad3f95..0786bd7e94c5a5572a78cca667c829a32eee982f 100644 (file)
@@ -2058,7 +2058,7 @@ ZEND_VM_HANDLER(60, ZEND_DO_FCALL, CONST, ANY)
 
        if (zend_u_hash_find(EG(function_table), Z_TYPE_P(fname), Z_UNIVAL_P(fname), Z_UNILEN_P(fname)+1, (void **) &EX(function_state).function)==FAILURE) {
                /* FIXME: output identifiers properly */
-               zend_error_noreturn(E_ERROR, "Unknown function:  %R()", Z_TYPE_P(fname), Z_UNIVAL_P(fname));
+               zend_error_noreturn(E_ERROR, "Call to undefined function:  %R()", Z_TYPE_P(fname), Z_UNIVAL_P(fname));
        }
        EX(object) = NULL;
 
index 7b53e78f6a30cb55fda68538259408edb927bd48..e6bf21131afe8c3a0d4722aa2f019fd75b05e9b2 100644 (file)
@@ -1602,7 +1602,7 @@ static int ZEND_DO_FCALL_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 
        if (zend_u_hash_find(EG(function_table), Z_TYPE_P(fname), Z_UNIVAL_P(fname), Z_UNILEN_P(fname)+1, (void **) &EX(function_state).function)==FAILURE) {
                /* FIXME: output identifiers properly */
-               zend_error_noreturn(E_ERROR, "Unknown function:  %R()", Z_TYPE_P(fname), Z_UNIVAL_P(fname));
+               zend_error_noreturn(E_ERROR, "Call to undefined function:  %R()", Z_TYPE_P(fname), Z_UNIVAL_P(fname));
        }
        EX(object) = NULL;