Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86172 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47111 invoked from network); 12 May 2015 18:44:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2015 18:44:04 -0000 Authentication-Results: pb1.pair.com header.from=bishop.bettini@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bishop.bettini@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.171 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 209.85.217.171 mail-lb0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:35770] helo=mail-lb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/01-41925-2F942555 for ; Tue, 12 May 2015 14:44:03 -0400 Received: by lbbuc2 with SMTP id uc2so12786515lbb.2 for ; Tue, 12 May 2015 11:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=q4EpTE3v3SaxrgJ50HakP4D5gvhuHEMcV/blS3Zwe4w=; b=AE9pdGj0C3REUba6AZpCbOLiOhCuCPLAPag3jp9bXWflh/5hXvIQp1U8bXQQYLQzdu 9JhQ5OwYGxvl50C2SXmFjzoilBxPWp+rCqbDpJ7UoFEdIXWnmPvL8NMQltcxuNSKUpVf 5IwuQYQ+wh/13xgowwZb+DxJe8leSjTOdCzTVY+jy3rM20U9v8BJAA41FVzEC5z5XSzD caVDrqbvVzHvj5lIC+f2ddAIrt7swgaXJlPy6X1xUpWe8eD4iV4eqHNQ+iajxDuR2UKu 0L7kk7jU/lMKOOYFbmlmabCVnbCH/wFq9Hta2tWMFN9+upC9i9QlAaY/400xjpUqGrH2 CsBA== MIME-Version: 1.0 X-Received: by 10.152.8.6 with SMTP id n6mr12991754laa.116.1431456240345; Tue, 12 May 2015 11:44:00 -0700 (PDT) Reply-To: bishop@php.net Sender: bishop.bettini@gmail.com Received: by 10.152.125.167 with HTTP; Tue, 12 May 2015 11:44:00 -0700 (PDT) Date: Tue, 12 May 2015 14:44:00 -0400 X-Google-Sender-Auth: bn9hoGyYj1IiMPC8e0hzfXHDr2Y Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11c3534ab7a5f80515e6e0a6 Subject: Static method call with single colon results in fatal error, not a parse error? From: bishop@php.net (Bishop Bettini) --001a11c3534ab7a5f80515e6e0a6 Content-Type: text/plain; charset=UTF-8 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. --001a11c3534ab7a5f80515e6e0a6--