]> granicus.if.org Git - php/commitdiff
No missleading
authorMarcus Boerger <helly@php.net>
Thu, 8 Aug 2002 22:11:24 +0000 (22:11 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 8 Aug 2002 22:11:24 +0000 (22:11 +0000)
main/main.c

index 8a5b0fdb11d66a749a521e0e72dd3b22cc5fc678..2f0b82cf66395d49a03dbc7b9a9d6964097a7778 100644 (file)
@@ -402,8 +402,6 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
                                        while((p=strchr(docref_buf, '_'))!=NULL) *p = '-';
                                        docref = docref_buf;
                                }
-                       } else {
-                               /* FIXME: need to handle non function calls and non TSRM builds here */
                        }
                }
                if (docref) {
@@ -412,8 +410,11 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
                        } else {
                                php_error(type, "%s(%s) [%s%s]: %s", get_active_function_name(TSRMLS_C), params, PG(docref_root), docref, buffer);
                        }
-               } else {
-                       php_error(type, "%s(%s): %s", get_active_function_name(TSRMLS_C), params, buffer);
+               } else {                                
+                       docref = get_active_function_name(TSRMLS_C);
+                       if (!docref)
+                               docref = "Unknown";
+                       php_error(type, "%s(%s): %s", docref, params, buffer);
                }
                efree(buffer);
                if (docref_buf)