Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53394 invoked from network); 12 May 2015 19:05:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2015 19:05:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=bishop.bettini@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bishop.bettini@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.181 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 209.85.217.181 mail-lb0-f181.google.com Received: from [209.85.217.181] ([209.85.217.181:36245] helo=mail-lb0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/62-41925-DEE42555 for ; Tue, 12 May 2015 15:05:18 -0400 Received: by lbbqq2 with SMTP id qq2so13194186lbb.3 for ; Tue, 12 May 2015 12:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=6PyrAuMoscKmHnfFUwlb8k9H2CYn07rUC4RGK+Tz6hY=; b=hCnKXK5pe1ZLzsZjMw5MzzjVNtcE5dXSpktDR0MBObkY7q5EYgg3rFZVNtMSfYRyET 4AaHnCu1DbkqFDJJQtLbU5BbpqUsmMIMVIvoFqI80PVy1UkEzIz31RFOmlIOly70VYy2 VVfMk+zY+1q5GqhNT0mQlwcOCF8qknk8cPqd3w7FYMIcVpaRGYEes6PyzyQcvUEUIkvQ D7fLmWIcGrjRMatvNRwBrdsDkyC+eT8De7R3sy9GVqg/p6TaOWy+nXRe8EKgyuIpju8d n1Ngo0yRI059GtF8JjYLO1zrxwCoB8CF53Dq3SBnUPY1naSRbbYZQBAzEMrQIuJPMRSv puXA== MIME-Version: 1.0 X-Received: by 10.112.204.199 with SMTP id la7mr12987614lbc.114.1431457514764; Tue, 12 May 2015 12:05:14 -0700 (PDT) Reply-To: bishop@php.net Sender: bishop.bettini@gmail.com Received: by 10.152.125.167 with HTTP; Tue, 12 May 2015 12:05:14 -0700 (PDT) In-Reply-To: <55524B3A.1090302@gmx.de> References: <55524B3A.1090302@gmx.de> Date: Tue, 12 May 2015 15:05:14 -0400 X-Google-Sender-Auth: nIDFwNlGgpgPA98Sl4ZD2LFDhok Message-ID: To: Christoph Becker Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c3bb30adbe110515e72c17 Subject: Re: Static method call with single colon results in fatal error, not aparse error? From: bishop@php.net (Bishop Bettini) --001a11c3bb30adbe110515e72c17 Content-Type: text/plain; charset=UTF-8 On Tue, May 12, 2015 at 2:49 PM, Christoph Becker wrote: > Bishop Bettini wrote: > > > class Foo { > > public static function bar() { echo 'bar'; } > > } > > Foo:bar(); > > > > > > Note the single colon. According to 3v4l ... > > Foo:bar(); > > is the same as > > Foo: > bar(); > > so it is parsed as labelled statement, and as such is syntactically > valid since PHP 5.3. > Ah, labels, right. Thanks! I will now go off and grumble that labels should mandate, rather than just accept, block scope since it's easy to forget one half of Paamayim Nekudotayim.... --001a11c3bb30adbe110515e72c17--