Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24105 invoked from network); 29 Sep 2013 12:03:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2013 12:03:01 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.169 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.128.169 mail-ve0-f169.google.com Received: from [209.85.128.169] ([209.85.128.169:53428] helo=mail-ve0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/F8-07863-3F618425 for ; Sun, 29 Sep 2013 08:03:00 -0400 Received: by mail-ve0-f169.google.com with SMTP id db12so3258097veb.14 for ; Sun, 29 Sep 2013 05:02:57 -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=pakkGAnx7rMtKoiwDfF4rWm7JrRDPDRIpFg6B5mFZKo=; b=fzW4oT5zwY88GDcw4VsmrKzfPNU1lMHZMs/hYn3B8+arB2CK3fiOwFwSQ0ysDbCaLF q79EOB/YvKzh6D3wC1nIIrf6ApXPpms/VFYfrCpOPXWKAXiq7gs46isaHpzdL23bfF26 wGc3PRLT0o2M1yYkJpgTXbL3Q8Ly6T6Voko+baaNmiKunV0P571TciEWPGH/Xx4tN6oZ K5MXfQPxasuH4OkM2g3AQBl+NYt0AgECXWFZLuPAdG7nOBoq3HiRI+TxSq7wCTc+n730 pjqV27MyukHyS+7vlJHtWORhwCNY01OQgFr1I4UPWXZnKgTgcdbXMfacMjAx/q1prsEk J8DQ== MIME-Version: 1.0 X-Received: by 10.52.227.6 with SMTP id rw6mr14043506vdc.19.1380456176868; Sun, 29 Sep 2013 05:02:56 -0700 (PDT) Received: by 10.220.59.1 with HTTP; Sun, 29 Sep 2013 05:02:56 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 14:02:56 +0200 Message-ID: To: Ferenc Kovacs Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e011616600ce2e904e7848026 Subject: Re: [PHP-DEV] handling non-fatal compile-time errors From: nikita.ppv@gmail.com (Nikita Popov) --089e011616600ce2e904e7848026 Content-Type: text/plain; charset=ISO-8859-1 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=65322 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-time > non-fatal errors until the problem is resolved. > By the way, there is no problem per-se to allow autoloading there (nested 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=1). If all lookups in the compiler are changed to use zend_lookup_class_ex with use_autoload=0 it might be possible to remove the condition there. Nikita --089e011616600ce2e904e7848026--