Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86173 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48676 invoked from network); 12 May 2015 18:49:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2015 18:49:31 -0000 Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.176 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.213.176 mail-ig0-f176.google.com Received: from [209.85.213.176] ([209.85.213.176:36012] helo=mail-ig0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/61-41925-A3B42555 for ; Tue, 12 May 2015 14:49:31 -0400 Received: by igbpi8 with SMTP id pi8so117426977igb.1 for ; Tue, 12 May 2015 11:49:27 -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=55rJEtO2K1aMwwWV0uXIphlWAVjvVXiKgDqs1oYqbSc=; b=Syeiuhq3/P6jqYVOzqHjyyKd/RUpVodbIqG2/nGER8Ai2e/IUJbcprNLImaMCBZkW5 5/ABz4FDt5a/3DE/wZziPzJOJIXnbzPFLclzQDnbkjM/MmfkazbGpXnNwljg1qml4czC cqfjn48N29EOI4PKW4J2WkoMIR5uFgeTdw398GWdUPei3+hGlb3fkjYLFu+Ex54fRb5J wqkrLgUZuJ71qQ7ebGUIQUuDMhwI6hxii63AcDHdkDW6tCkD2qp3cMOnkKQB+zsZNZ/l Pnjtm9gBegq8d3Yo91a4xbJewkUMsUhuwmeDivSPHOUFDAVfgsO2xU8gPEr/CDNS6pW+ VD+Q== MIME-Version: 1.0 X-Received: by 10.107.17.150 with SMTP id 22mr3684893ior.64.1431456567826; Tue, 12 May 2015 11:49:27 -0700 (PDT) Received: by 10.50.246.20 with HTTP; Tue, 12 May 2015 11:49:27 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 May 2015 21:49:27 +0300 Message-ID: To: bishop@php.net Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Static method call with single colon results in fatal error, not a parse error? From: ua.san.alex@gmail.com ("S.A.N") Foo::bar(); Output for 5.0.0 - 5.6.8, php7@20140507 - 20150501, hhvm-3.6.0 - 3.7.0bar http://3v4l.org/F6tXZ 2015-05-12 21:44 GMT+03:00 Bishop Bettini : > class Foo { > public static function bar() { echo 'bar'; } > } > Foo:bar(); > > > Note the single colon. According to 3v4l ... > > 5.2.17 and earlier: > Parse error: syntax error, unexpected ':' > > 5.3 and later, including 7 and HHVM: > Fatal error: Call to undefined function bar() > > > Is this really a run-time fatal error? Unless I missed a memo, surely this > should be a compile time error.