diff options
author | Marcus Boerger <helly@php.net> | 2002-08-08 19:36:49 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-08 19:36:49 +0000 |
commit | 976a91a55b4dd16a97f973e3de7bc14697b5ceb2 (patch) | |
tree | 15b89403566b46fa7ab88ab947e59a18a628c6bf | |
parent | 88c385e8176c50d0cfe1d5203cd0ce40859a1b68 (diff) | |
download | php-git-976a91a55b4dd16a97f973e3de7bc14697b5ceb2.tar.gz |
Say FIXME to non function calls and non TSRM builds. Both will currentls
not show a default reference.
-rw-r--r-- | main/main.c | 15 |
1 files 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) { |