From 976a91a55b4dd16a97f973e3de7bc14697b5ceb2 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 8 Aug 2002 19:36:49 +0000 Subject: [PATCH] Say FIXME to non function calls and non TSRM builds. Both will currentls not show a default reference. --- main/main.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main/main.c b/main/main.c index 13750468f2..8a5b0fdb11 100644 --- a/main/main.c +++ b/main/main.c @@ -390,15 +390,20 @@ PHPAPI int php_printf(const char *format, ...) /* {{{ php_verror */ PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) { - char *buffer = NULL, *docref_buf = NULL, *p; + char *buffer = NULL, *docref_buf = NULL, *function, *p; vspprintf(&buffer, 0, format, args); if (buffer) { if (!docref) { - spprintf(&docref_buf, 0, "function.%s%s", get_active_function_name(TSRMLS_C), PG(docref_ext)); - if (docref_buf) { - while((p=strchr(docref_buf, '_'))!=NULL) *p = '-'; - docref = docref_buf; + function = get_active_function_name(TSRMLS_C); + if (function) { + spprintf(&docref_buf, 0, "function.%s%s", function, PG(docref_ext)); + if (docref_buf) { + 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) { -- 2.40.0