Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69412 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21632 invoked from network); 29 Sep 2013 11:42:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2013 11:42:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.43 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.212.43 mail-vb0-f43.google.com Received: from [209.85.212.43] ([209.85.212.43:56441] helo=mail-vb0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/78-07863-72218425 for ; Sun, 29 Sep 2013 07:42:32 -0400 Received: by mail-vb0-f43.google.com with SMTP id h11so2973017vbh.2 for ; Sun, 29 Sep 2013 04:42:28 -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=B3Phk3Hi7IFIBtfG7P2bDXV1n23ho4fJr198IOmaIxA=; b=eAAtP0MrgsIZa3ON8W9jJijWnW6Ny0ugj4cVmz8capsZ2ruPunTTxySBnz9l/6kUSB Zvpi1QXsd8ah4IDxSmPPcuXaO9TqOjpH+0vqJjoSY09glp9iQH9MGMDCPDK1QztXc1c4 igCrfa+PRYV7LhOiUf2u2EnYjW0kSONoo+PXIah6/rnddCMcfFey8zN+aFHxYZ7KXzwn uG7yLvQJQFJTazOiozXW5EVnTYyLqXtrobPoc3Vm/Ls3qTFLAljQbzqouTFm+15gW53G fcCvpCVRY5P8DlLbLTtgLMCQsfL0QRNwYKBxmcffUmyhQDrx9+ithZfnJ6D5r3VJHLu5 LETA== MIME-Version: 1.0 X-Received: by 10.220.174.200 with SMTP id u8mr16678124vcz.6.1380454948418; Sun, 29 Sep 2013 04:42:28 -0700 (PDT) Received: by 10.220.59.1 with HTTP; Sun, 29 Sep 2013 04:42:28 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 13:42:28 +0200 Message-ID: To: Ferenc Kovacs Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0149ca3ad43cf004e7843605 Subject: Re: [PHP-DEV] handling non-fatal compile-time errors From: nikita.ppv@gmail.com (Nikita Popov) --089e0149ca3ad43cf004e7843605 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. > I didn't look into the underlying problem with the autoloader, but just removing the errors is not a solution. If this is so problematic we should just drop E_STRICT and use more appropriate error types that already exist - e.g. in the compiler E_COMPILE_WARNING can be used, which will not invoke a custom error handler and as such can't cause this issue. We already have special error types for the compiler, so why not use them? Nikita --089e0149ca3ad43cf004e7843605--