From: Marcus Boerger Date: Thu, 8 Aug 2002 22:11:24 +0000 (+0000) Subject: No missleading X-Git-Tag: php-4.3.0dev_zend2_alpha3~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e11e0b0ec0c6fffbfedcb9504bbdaca7ea072362;p=php No missleading --- diff --git a/main/main.c b/main/main.c index 8a5b0fdb11..2f0b82cf66 100644 --- a/main/main.c +++ b/main/main.c @@ -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)