Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62807 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8091 invoked from network); 4 Sep 2012 17:44:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2012 17:44:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=simpleshot@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=simpleshot@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: simpleshot@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:62236] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/2C-46870-70E36405 for ; Tue, 04 Sep 2012 13:44:40 -0400 Received: by iamm10 with SMTP id m10so10518147iam.29 for ; Tue, 04 Sep 2012 10:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=3KLPyvcjM8UTyrYpx2FgmwaT2HOMGXqrPYY0iKh29K0=; b=u9yGhNU+Swtq4Tna9xHm9fY9OUUroTYmbD2BB/ZRT4M8U3ExYtlsjfScfhNK7gXKcD EfsaOmwEl+IbVPODb46z4VKcIwUAwVnfjJUoXQiRd7jYOrcT5Q1sYI3l5OEiYKyTi571 gkl6kJgl2HeMetU9pWyWFo84Z0Uh0hMh9KVxa7z4w9Y0Og2/5ha26pRhzWut/1Rh4pd4 ZgGS8A2aiO26+zyyGYZjUwoJK4lzMbHoou6kMZwzOt7yCpUE1KNce9SlmYYvAn7gN6Cj u3ewVFtCVdBHhg+woFSC5j16m5D6DmhYsFEAVHrSRoQm/nf4vUf/bvGPbeN8X4QRms3H Br6A== MIME-Version: 1.0 Received: by 10.60.22.169 with SMTP id e9mr9718055oef.124.1346780677154; Tue, 04 Sep 2012 10:44:37 -0700 (PDT) Received: by 10.60.118.167 with HTTP; Tue, 4 Sep 2012 10:44:37 -0700 (PDT) In-Reply-To: References: <5042946A.80204@sugarcrm.com> <5042A7D6.7050001@lerdorf.com> <50452713.3020307@sugarcrm.com> <5045CAA3.6000409@lsces.co.uk> <5045E044.9080809@lsces.co.uk> <5045F939.6010806@lsces.co.uk> <5045FD98.8080306@lsces.co.uk> <50463317.7000109@lerdorf.com> Date: Tue, 4 Sep 2012 13:44:37 -0400 Message-ID: To: PHP Development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core? From: simpleshot@gmail.com (Adam Richardson) On Tue, Sep 4, 2012 at 1:34 PM, Ferenc Kovacs wrote: > > 2012.09.04. 18:58, "Rasmus Lerdorf" ezt =EDrta: > > >> >> On 09/04/2012 09:36 AM, Adam Richardson wrote: >> > I think Ferenc is correct in that this sounds like there's a custom >> > error handler somewhere. If the custom error handler collects error >> > info and then throws an exception (as has been detailed in various >> > blog posts as one manner of unifying the errors), this would cause the >> > trouble you're seeing. >> >> Only on a new E_STRICT. Even with E_STRICT off by default, custom error >> handlers are still called, and I think Lester said that turning E_STRICT >> off made it work. So if this is the cause, then it has nothing to do >> with E_STRICT being in E_ALL or not, nor whether display_errors is on or >> off. It would have to do with the custom error handler blowing up on one >> specific E_STRICT, which I find rather unlikely. >> > > Don't forget that many error handlers check the error level against the > currently set error_reporting (so that they won't be executed on supresse= d > errors and such). > AFAIR we even promote that implementation in our error handler example in > our docs. > That would mean that the error handler main logic is only executed if > E_STRICT is in the error_reporting. I was second-guessing my recall I had a similar issue way back, after Rasmus pointed out that the custom error handler is called even if E_STRICT is off. However, I just looked back at my framework code, I see I'm checking to make sure the error level matches, just as Ferenc pointed out (what a forgetful old man I am.) So, I think this could still be causing the issue and it's something worth exploring on Lester's part. Adam --=20 Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com