Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58453 invoked from network); 4 Sep 2012 13:22:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2012 13:22:37 -0000 Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: peter.e.lind@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:60130] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/02-46870-D9006405 for ; Tue, 04 Sep 2012 09:22:37 -0400 Received: by ied7 with SMTP id 7so5355376ied.29 for ; Tue, 04 Sep 2012 06:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=jhHViZSXFIE50UxRjqWKE6kMoSJXQi9kK/OpYvbd2u0=; b=Ss2NhDhJVh1UEwqRtQwxRJduLFFgigjuratmnlGpkbAnbz0AeqZg8LxFJvFXgJN18f DqMxW2+BQmO4PHzF6v/XQ3Bu91puQ3meNalbBukM09JKhGN29xoGw/tQW2IqjdHndF4l NdIeL+/UA0cdVcyhG7cMet955fjqBt+s/ltpAwQW3rXjBjoe2HwEqXTZM91igJxAEltm wGrBFedtRP33imHyjSr2p+3tpTHyUiRrAAd0PM/ws5bYXU/JavpQj8/P7F/hIQB59gMN PFLGnZYgkB3o/3cqPl7k4SDQ4WKu2WI3l/GAeDnr1Kg1M7vAp4JK/HvmFk40gzK4g4NU x20Q== Received: by 10.182.75.33 with SMTP id z1mr16330363obv.9.1346764954250; Tue, 04 Sep 2012 06:22:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.150.230 with HTTP; Tue, 4 Sep 2012 06:22:13 -0700 (PDT) In-Reply-To: <5045FD98.8080306@lsces.co.uk> References: <5040DC47.8000305@ajf.me> <5040F4D9.80206@sugarcrm.com> <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> Date: Tue, 4 Sep 2012 15:22:13 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core? From: peter.e.lind@gmail.com (Peter Lind) On 4 September 2012 15:09, Lester Caine wrote: > Pierre Joye wrote: >> >> On Tue, Sep 4, 2012 at 2:51 PM, Lester Caine wrote: >> >>> >??? OH YES IT DOES !!! >>> >MANY times I get a a few lines of text on a white screen ... >>> >Switch off E_STRICT and everything works fine ... as it was on PHP5.2 >> >> If you have any doubts about how to configure your development or >> production servers, how to use logs or how to effectively debug php >> applications, please ask questions on php-general or php-setup mailing >> lists. >> >> Thanks for your understanding, > > Butt out Pierre ... > > I keep being told that there is nothing wrong with E_STRICT, and again > someone has said that it does NOT cause crashes. I beg to differ here - IT > DOES! > Now if you are saying that I need to document these crashes as they SHOULD > not be happening then I'll roll things back and start doing that, but *I* > thought that these crashes were simply a known effect of using E_STRICT? And > so I followed the directions, and switched E_STRICT off. On production > machines of PHP5.3 with E_STRICT enabled and on PHP5.4 one gets white screen > crashes using older code ... as far as I was concerned that was a known > fact. Switch it off and everything runs fine! > From php.ini: ; display_errors ; Default Value: On ; Development Value: On ; Production Value: Off In a production environment with display_errors off, E_STRICT doesn't crash anything. Actually, even with it on, it doesn't crash anything - shitty code does, by creating notices and then using header() calls afterwards to create redirects. Solution: fix your server. Fix your code. It worked for the rest of us. Regards Peter -- WWW: plphp.dk / plind.dk CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15