Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51995 invoked from network); 29 Sep 2013 17:13:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2013 17:13:20 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.45 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.45 mail-qa0-f45.google.com Received: from [209.85.216.45] ([209.85.216.45:34586] helo=mail-qa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/ED-07863-FAF58425 for ; Sun, 29 Sep 2013 13:13:19 -0400 Received: by mail-qa0-f45.google.com with SMTP id k4so1722875qaq.18 for ; Sun, 29 Sep 2013 10:13:17 -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 :cc:content-type; bh=Ah1BuFJ1SHMiYedaztAvVdPVeQehCdllLvHq+A2i4V0=; b=dBicI4mpm2/hwJip7S6iGgpmrKSjLk4Utfm3V8FbyZ579VmMmdlHD8tW571ZASnrgn rhzHzO/BSsxPYZa7Tf+niFrtEcH5omzW16tR1GK2gjBO11oXfOFi2yyw6SeqoVtQf8Cw 1txTfO5MEvCeec8UuHq7cgBIHWBS5ee8xQO8olxg7nPQZ/NEWaYsKtsNmZxLR48QASfy A/zM6C1NeXn+H5M5tenZw/KdGKLvoU3TSXcR1/9zbMrUQPw5PFIcMKl25uPPgFKt8qVB +52163tm/tAzfd8SawBfdXqPgFs1jOJaL0phirANL1SjYdgjI4vBZZGL6sc2Sa3IDF9h LGZQ== MIME-Version: 1.0 X-Received: by 10.229.30.7 with SMTP id s7mr23331925qcc.7.1380474796980; Sun, 29 Sep 2013 10:13:16 -0700 (PDT) Received: by 10.140.22.71 with HTTP; Sun, 29 Sep 2013 10:13:16 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 19:13:16 +0200 Message-ID: To: Nikita Popov , Antony Dovgal Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1133b4c4e540c104e788d53c Subject: Re: [PHP-DEV] handling non-fatal compile-time errors From: tyra3l@gmail.com (Ferenc Kovacs) --001a1133b4c4e540c104e788d53c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Sep 29, 2013 at 4:59 PM, Ferenc Kovacs wrote: > > > > On Sun, Sep 29, 2013 at 2:02 PM, Nikita Popov 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 >>> engine >>> (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 >>> propose >>> removing the offending errors and make it a rule to not add compile-tim= e >>> non-fatal errors until the problem is resolved. >>> >> >> By the way, there is no problem per-se to allow autoloading there (neste= d >> compilation due to error handlers is properly handled), the reason it >> currently has the in_compilation check there is to prevent all the class >> lookups from the compiler to trigger the autoloader (the compiler makes >> extensive use of zend_lookup_class, which sets use_autoload=3D1). If all >> lookups in the compiler are changed to use zend_lookup_class_ex with >> use_autoload=3D0 it might be possible to remove the condition there. >> >> Nikita >> > > Thanks for the reply, about the requirement of the in_compilation check: > even recent comments stated that it is because the compiler not being > reentrant (see the last comments from > https://bugs.php.net/bug.php?id=3D54054&edit=3D1). > Personally I would be fine with the separate error level, but if we could > allow the autoloader there, that would be fantastic > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > For the record: Nikita just fixed the issue: http://git.php.net/?p=3Dphp-src.git;a=3Dcommit;h=3Df0c926564c5f7de9462d9ca7= bd75014b14a63f56 _o_ --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a1133b4c4e540c104e788d53c--