From: Ilia Alshanetsky Date: Mon, 30 Jan 2006 15:31:10 +0000 (+0000) Subject: Fixed error reporting logic for HTML errors X-Git-Tag: php-4.4.3RC1~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9967278b85d79a25cc6f7ce184327f816e2e1c8b;p=php Fixed error reporting logic for HTML errors --- diff --git a/main/main.c b/main/main.c index c6fd6c71f5..d061842b69 100644 --- a/main/main.c +++ b/main/main.c @@ -496,7 +496,7 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c } } } - if (!PG(html_errors) || !strlen(PG(docref_root))) { + if (!PG(html_errors) && !strlen(PG(docref_root))) { /* no docref and no html errors -> do not point to any documentation (e.g. production boxes) */ php_error(type, "%s(%s): %s", get_active_function_name(TSRMLS_C), params, buffer); } else if (PG(html_errors)) {