]> granicus.if.org Git - php/commitdiff
Fixed error reporting logic for HTML errors
authorIlia Alshanetsky <iliaa@php.net>
Mon, 30 Jan 2006 15:31:10 +0000 (15:31 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 30 Jan 2006 15:31:10 +0000 (15:31 +0000)
main/main.c

index c6fd6c71f5d8336b19fefa81d76066f597617f8e..d061842b69a3a9fdc71e9d57cf1598bff2720eb5 100644 (file)
@@ -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)) {