Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72637 invoked from network); 24 Jun 2011 01:43:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2011 01:43:30 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:37960] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/09-19628-CE2B30E4 for ; Thu, 23 Jun 2011 17:41:01 -0400 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 31CB4DE140; Thu, 23 Jun 2011 22:40:57 +0100 (BST) Date: Thu, 23 Jun 2011 22:40:57 +0100 (BST) X-X-Sender: derick@whisky To: Stas Malyshev cc: PHP Developers Mailing List In-Reply-To: <4E03AFFA.7060005@sugarcrm.com> Message-ID: References: <4E03AFFA.7060005@sugarcrm.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] html_errors default settings From: derick@php.net (Derick Rethans) On Thu, 23 Jun 2011, Stas Malyshev wrote: > On 6/23/11 12:47 PM, Derick Rethans wrote: > > I'd like to revert this change *and* change when the docrefs are > > shown, so that in 5.4 and trunk: > > - html_errors is on by default again. > > - the docref links are only shown when docref_root is not empty > > > > A patch is attached. Comments? > > Thinking more about this: if we're in production, that means > display_errors is off. So where exactly we expect to have these HTML > errors and how they are useful? They are not useful in production, but as distributions use the "php.ini-production", even PHP developer that uses a distribution package now doesn't use the "php.ini-development" settings. Hence, no more HTML errors and people bitch. Not seeing errors because display_errors=0 is much more obvious. > I have no idea why specific settings of xdebug depend on html_errors > and why xdebug can't have its own configuration setting to fix it if > needed - but this has nothing to do with PHP defaults IMO. I'd like to > hear and explanation how production setting of html_errors as 1 is > useful. They "depend" by choice. Xdebug simply enhances how things show up, and does not want to mess with the settings that people have already made, as that's even a larger WTF point. The main points are that: 1. the default changed between 5.2 and 5.3, and I'd like to restore it 2. html_errors shouldn't mean that the docref stuff is turned on automatically. The docref stuff is the annoying part, not the HTML formatting. HTML formatting in production is *not* a problem (you should have display_errors=0 anyway). Main goal: make it easier for developers. cheers, Derick