Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53569 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20675 invoked from network); 24 Jun 2011 07:58:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2011 07:58:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=php.crombeen@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php.crombeen@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: php.crombeen@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:33378] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/F6-19628-B9DA30E4 for ; Thu, 23 Jun 2011 17:18:20 -0400 Received: by eyf5 with SMTP id 5so745916eyf.29 for ; Thu, 23 Jun 2011 14:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-type:message-id:content-transfer-encoding:cc:x-mailer:from :subject:date:to; bh=vLZLBmThrcCwhNfNRbcUo5FEqB72EBiTJnOKEBOGq4o=; b=s92We8C4nAk8jLJJmLtRID2LujtHwcTD8eJCoYvhFC1QQFo43rq5fc9mPY5Jzfb4Mn OBtrayqVTEXyTHuBoBnsR3iJYLcuXOzsidtxv0BpyQ8F4S8cLGLWD+kYq8JnhA+k9FUR HURPdhI5yQ0GR8ZI1evXk7jK+kx+2tq8qeN38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-type:message-id :content-transfer-encoding:cc:x-mailer:from:subject:date:to; b=NCLpu/eMuNE0l/vGxz0kiOtmiY1B9j+TvXstPnCHmbwIayCqCBSWdYAF328FM5tBKI qnNFKjezmCoIP7ujXF79x295+L8ZnZEvmKOEJ0hqx7IuI0FyLC1rmXOIROyOVeVxg4/l SD0mJHM/EC1tIVgD9zj0gBIKRySkO4McHPp0A= Received: by 10.14.2.24 with SMTP id 24mr1619967eee.132.1308863896693; Thu, 23 Jun 2011 14:18:16 -0700 (PDT) Received: from [192.168.1.101] (c89057.upc-c.chello.nl [212.187.89.57]) by mx.google.com with ESMTPS id z1sm1548846eeb.20.2011.06.23.14.18.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Jun 2011 14:18:15 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8J2) Content-Type: text/plain; charset=us-ascii Message-ID: Content-Transfer-Encoding: quoted-printable Cc: PHP Developers Mailing List X-Mailer: iPhone Mail (8J2) Date: Thu, 23 Jun 2011 23:18:36 +0200 To: Derick Rethans Subject: Re: [PHP-DEV] html_errors default settings From: php.crombeen@gmail.com (Benno) Hi, Op 23 jun. 2011 om 21:47 heeft Derick Rethans het v= olgende geschreven: > Hi! >=20 > In PHP 5.2 and earlier, the html_errors setting has always been on by=20 > default (in the code, in php.ini-dist and in php.ini-recommended). Since=20= > PHP 5.3, it's still on by default in the code and in=20 > php.ini-development, but php.ini-production has it off with the=20 > following comment: >=20 > ; When PHP displays or logs an error, it has the capability of inserting h= tml > ; links to documentation related to that error. This directive controls wh= ether > ; those HTML links appear in error messages or not. For performance and se= curity > ; reasons, it's recommended you disable this on production servers. >=20 > Right now, the docref is shown whenever html_errors=3D1, even if=20 > docref_root is not set (empty string). >=20 > Sadly, this means that most distributions have it off in their php.ini.=20= >=20 > Although the setting does influence the HTML links as well, it's by no=20 > means a security (or performance) issue and it makes using PHP in=20 > development a lot more annoying (because distributions have the=20 > "production" version of php.ini, and not the "development" one. > It causes many many questions being asked why Xdebug doesn't show the=20 > pretty errors and having it odd serves nothing. (In production, you=20 > should set display_errors off). >=20 > A few examples: >=20 > http://cloudfysh.wordpress.com/2010/06/11/php-xdebug-not-formatting-var_du= mp/ > http://stackoverflow.com/questions/4534312/xdebug-var-dump-function-colors= > http://www.paoloiannelli.com/2011/04/15/solution-for-xdebug-not-overloadin= g-var_dump/ > http://stackoverflow.com/questions/2108576/unreadable-var-dump-output-on-s= now-leopard >=20 > 12:00 I just installed xdebug on my debian box > 12:00 mostly for the nice output on error messages > 12:01 but it doesn't work (i.e. I only get the default output) > 12:01 any idea ? > 12:01 http://xdebug.org/docs/faq#format >=20 > derick@xdebug:~/irclogs/OPN$ cat \#xdebug.log | grep 'faq#format' | wc -l > 27 >=20 > I'd like to revert this change *and* change when the docrefs are=20 > 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 >=20 > A patch is attached. Comments? >=20 > cheers, > Derick >=20 >=20 > --=20 > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php =46rom the userland developer perspective this would certainly be nice. Cheers, Benno Crombeen=