Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69411 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10936 invoked from network); 29 Sep 2013 08:01:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2013 08:01:44 -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 Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.47 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.47 mail-qa0-f47.google.com Received: from [209.85.216.47] ([209.85.216.47:51438] helo=mail-qa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/F6-07863-66ED7425 for ; Sun, 29 Sep 2013 04:01:42 -0400 Received: by mail-qa0-f47.google.com with SMTP id k4so1528092qaq.6 for ; Sun, 29 Sep 2013 01:01:39 -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; bh=OfZ5HnhPKRw6mbM5c3kPO9jBlRko70k+uBNxKSVD4H8=; b=xh3/mEQQcMWrg+J6rtWY2EI54HyjjA7YBBbunubIi8fSuVkwzHbAgzE647oLxsP7q5 HZnj5C3O+k0C5gAjMUtR5pF4Nd8rSoBk2yNZvc8gt45Po+l+sBELy5arw6X1on6MLzhI OUtHM2wWId9yUzName0V6YmuNqI6kSuhwlsIPG+uLBHaaBXcRadcKf2WX3EkL5h7uBI2 VMgG+tzku5zCM3CzoxJxXgNv/Jbp0Osfetho/10HzriWuz4bPDqjjHaz7iUXlnVaASmp wyakorr8HCCRfmK9MvGL0VaIUyjCj0VxyEmbcB5vvFcUC3qXfC/TOemdLnn1P0Q8g5sY aqkw== MIME-Version: 1.0 X-Received: by 10.224.121.147 with SMTP id h19mr213747qar.105.1380441699481; Sun, 29 Sep 2013 01:01:39 -0700 (PDT) Received: by 10.140.22.71 with HTTP; Sun, 29 Sep 2013 01:01:39 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 10:01:39 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=089e0149c60e21a89e04e78121de Subject: Re: handling non-fatal compile-time errors From: tyra3l@gmail.com (Ferenc Kovacs) --089e0149c60e21a89e04e78121de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Aug 29, 2013 at 5:31 PM, Ferenc Kovacs wrote: > > > > On Thu, Aug 8, 2013 at 5:11 PM, Ferenc Kovacs wrote: > >> Hi, >> >> I've just bumped into https://bugs.php.net/bug.php?id=3D65322 recently, >> and I would like you get some opinions on the issue. >> Personally I think that it is a really bad design to introduce >> pedantic(E_STRICT) errors which can break basic functionality of the eng= ine >> (calling the registered autoloader), so if there is no viable solution t= o >> make the autoloader work for these kind of errors, I would like to propo= se >> removing the offending errors and make it a rule to not add compile-time >> non-fatal errors until the problem is resolved. >> >> ps: on a related note, somehow I got the feeling that Lester complaining >> that E_STRICT errors fataling/crashing the application migrated to PHP 5= .4 >> was related to this problem, and I'm a bit sad that we didn't managed to >> figure this out back then. >> >> -- >> Ferenc Kov=C3=A1cs >> @Tyr43l - http://tyrael.hu >> > > for the record this is a known(as reported) since 2007: > https://bugs.php.net/bug.php?id=3D42098 > and reported again in 2011: > https://bugs.php.net/bug.php?id=3D54054&edit=3D2 > > do we agree with the resolution from the 2007, eg. it is fine that there > an undefined list of errors (from all and any error level) which behave > differently than most others (as it won't trigger the autoloader) and eve= n > an E_STRICT error can blow up a reasonably written application (an expect= ed > error occurs, which happens to be compile time, which will trigger the > autoloader, which will fail to autoload it's dependencies, which will > generate class not found fatal error). > > I expect much more similar reports now that people start to migrate to > 5.4/5.5 where E_STRICT is part of E_ALL(and that the error reporting > infrastructure in an average application is more likely to depend on > autoloading nowadays). > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > bump. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --089e0149c60e21a89e04e78121de--