Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94285 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83738 invoked from network); 27 Jun 2016 15:47:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 15:47:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.175 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.192.175 mail-pf0-f175.google.com Received: from [209.85.192.175] ([209.85.192.175:33874] helo=mail-pf0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/47-40393-E7A41775 for ; Mon, 27 Jun 2016 11:47:11 -0400 Received: by mail-pf0-f175.google.com with SMTP id h14so63117100pfe.1 for ; Mon, 27 Jun 2016 08:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=XIoUooviPqaufSed0OhIkE3Ul817sY4MZqH2u9PIsy8=; b=jreHChSR/fa4G5t8vnoiDEl46r+/TFMF47iBESGLiuPqpdn0cCDoldGjp90tOZ4Ful gxHFrF/TT6OcS8O9FrK4LzP6FMglpP7ZiEwlBbn3gqCBUQLbGJItkQCUuAyWnrlQmQK6 I/alX097c0hMfHqkSC0H7RL8stwr1yIQlgcRsDqpciJt1D5q216IWoAKYOgB63ytERME QLTmXYsFdGcSfNCkskJtMyYnn809+PQiVm3PlIsDPK0+I0a67J+gZlBX+sujPFNF2cXb oSiTh+uxobWpMjjC1Kdowm6oQuw2PLFoX9Vlg3rE9vki7HJasIfjsD8QCxb4FKHusfoT JKHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=XIoUooviPqaufSed0OhIkE3Ul817sY4MZqH2u9PIsy8=; b=YgHCGGtnLhvsrerSWll+FhAuensBpoCc7Z9kgOzNn4pTeELjLljpCu1ormK7qr/fH8 MZ4QM85cpJVC5OXtKNUItmWlImH1g2EHG2xZT/URdx4sKwYSwUIRRhwxM7glZKnljQfS VdgFx0l68rHFO0Cn2glvqHAggsn6uwLya8mBEmrordhNYF7niTL8kjnzXRA3myE7c9QR z0kK2gPnsevU+Q6IQI+sH8AzAttrE2aq6KigXb5QBNQZUBqzC+2lOmFBwquLarWjHdEG bYuEjIbTp/jBKTG6sDUiUA416oBYWQxnH1mSTqGmfXCohP5mT6pdsVo1w7yBCY16AaIO P26Q== X-Gm-Message-State: ALyK8tI2Kj2B+Z5i7GmN+3OTMaKpxYyseaDdnZwtO7PzwBxyEGR63d8OJ6uK0lcS0Ab22Q== X-Received: by 10.98.64.193 with SMTP id f62mr34663625pfd.108.1467042427974; Mon, 27 Jun 2016 08:47:07 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id da2sm856156pad.3.2016.06.27.08.47.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jun 2016 08:47:07 -0700 (PDT) To: internals@lists.php.net References: <5d2a68ac-ccd8-59a9-31a8-91e40ecae12f@heigl.org> <500b1edb-ab52-da1e-5874-0fafa5dd8a7f@heigl.org> Message-ID: <69eb343f-8586-a8c0-9b4e-c301c9dcd556@gmail.com> Date: Mon, 27 Jun 2016 16:44:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <500b1edb-ab52-da1e-5874-0fafa5dd8a7f@heigl.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Possible Bug with Interface, Constants and Inheritance From: rowan.collins@gmail.com (Rowan Collins) On 27/06/2016 16:31, Andreas Heigl wrote: > So it crashes with a fatal error when Implementing the interface. It'S > interesting though that the script allows me to instantiate the class > nonetheless. It sounds to me like the ability of the interactive shell to catch fatal errors and continue allows you to execute code with the engine in a bogus state. It's possible to do all sorts of wacky things that way: php > class Bogus implements NonExistent {} PHP Fatal error: Interface 'NonExistent' not found in php shell code on line 1 Fatal error: Interface 'NonExistent' not found in php shell code on line 1 php > $b = new Bogus; php > var_dump($b); object(Bogus)#1 (0) { } php > var_dump($b instanceOf NonExistent); bool(false) php > var_dump($b instanceOf Bogus); bool(true) > PHP Fatal error: Cannot inherit previously-inherited or override > constant C1 from interface I1 in Can I just say this is a positively hideous error message. I can't actually figure out how to parse its grammar: is it (inherit previously-inherited) OR (override)? If so, what does "inherit previously-inherited" mean?