Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68687 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26425 invoked from network); 29 Aug 2013 15:31:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Aug 2013 15:31:51 -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.223.175 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-ie0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:34591] helo=mail-ie0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/B2-10946-5696F125 for ; Thu, 29 Aug 2013 11:31:49 -0400 Received: by mail-ie0-f175.google.com with SMTP id u16so947697iet.6 for ; Thu, 29 Aug 2013 08:31:46 -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=42UNv3Y73m/hCWOKkF0rZuW2pONemcsEkPwEx9n8oh0=; b=LfizgtggEVZ+qbb1/AzGziPBSkMNcNJpI6GgZmMntZG5ElRJCor1srJx6BZ6dOwqHs qkAfYmry/ajgbXF6Y4BMbRZe/P4JVpq5iiWXRzpn2HEA5GPV0hC69Y8vy+3lQzMCc2d5 bU8nDpUMsIylXD3lZYb+ReO1ZlKghIf0teMs1KUWQOW0Ta9jUBeCMlc32xup9GxqdRnI BKhknQF5fLEhjZa1XlNbxkXEQQGwuQidFfAiD19GNlAB/EVXPMtqVDqtSTJBk+BjbQzf M1T2fqKiEZquS3VqQU+Y82hsnJXfWafxqznGzQB1XnlnVsyvlARkqH7avRsS8rKHbekz xK8Q== MIME-Version: 1.0 X-Received: by 10.50.67.37 with SMTP id k5mr16769434igt.21.1377790306393; Thu, 29 Aug 2013 08:31:46 -0700 (PDT) Received: by 10.50.73.42 with HTTP; Thu, 29 Aug 2013 08:31:46 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Aug 2013 17:31:46 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=047d7bdc1870c9a79c04e517cd17 Subject: Re: handling non-fatal compile-time errors From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bdc1870c9a79c04e517cd17 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, a= nd > 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 engi= ne > (calling the registered autoloader), so if there is no viable solution to > make the autoloader work for these kind of errors, I would like to propos= e > 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 even an E_STRICT error can blow up a reasonably written application (an expected 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). --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7bdc1870c9a79c04e517cd17--