Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16193 invoked from network); 24 Jun 2011 07:28:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2011 07:28:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:42569] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/C2-30690-28C340E4 for ; Fri, 24 Jun 2011 03:28:03 -0400 Received: by gxk27 with SMTP id 27so1393747gxk.29 for ; Fri, 24 Jun 2011 00:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3Xr7W9IX1lD5y5uj79+YCwApLmWf68oxx2H6FBLVR7Y=; b=iIox51h2P30+Yp2dQ3y/Vto1v9O81rDYtLYrOWr3gCYaTtZzJ7LNFV8U1qSd8rQCFw 3709qZHeMJ75uIDnmswiI/17d7R10yAgHq6B4W60Jk595tURhtdQZ/ATlWf3c/reIv/m XZzPtdR7Ff/Q/UYGcDovuOTgJLnPYsIez6trY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=acsCahJnQYBE8jFtVOZmG8qmTuvSUo/z63BoBWsVxQJP73OQVTcUZ4qON5jllZvJ5j D/mOczAKBYcuWnvhAIxSwbjk3qS9BFo4WZZBigLReE9pC7vpSE0BtSDgU5QOGFhdwHAj b2cYoWOGAJ4DFMywyMh/YebzlU9rnxNzCiRAo= MIME-Version: 1.0 Received: by 10.236.182.230 with SMTP id o66mr5061307yhm.228.1308900480167; Fri, 24 Jun 2011 00:28:00 -0700 (PDT) Received: by 10.147.98.13 with HTTP; Fri, 24 Jun 2011 00:28:00 -0700 (PDT) In-Reply-To: References: <4E03AFFA.7060005@sugarcrm.com> Date: Fri, 24 Jun 2011 09:28:00 +0200 Message-ID: To: John Crenshaw Cc: Stas Malyshev , Derick Rethans , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=20cf305639b52aaea804a6702439 Subject: Re: [PHP-DEV] html_errors default settings From: tyra3l@gmail.com (Ferenc Kovacs) --20cf305639b52aaea804a6702439 Content-Type: text/plain; charset=UTF-8 On Thu, Jun 23, 2011 at 11:44 PM, John Crenshaw wrote: > > I'd like to hear and explanation how production setting of html_errors as > 1 is useful. > > One that comes to mind is in conjunction with an error trap (output buffer > hack to catch fatal errors and immediately notify an administrator). I could > imagine using html_errors specifically because it would make it easier to > parse the error from the output buffer. > > Of course, in this case I see no reason why the error trap couldn't set > html_errors at the same time as it sets display_errors and > error_prepend_string. > > for this, I prefer register_shutdown_function + error_get_last, it's way more reliable than parsing the html errors. Tyrael --20cf305639b52aaea804a6702439--