Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55703 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75295 invoked from network); 5 Oct 2011 18:18:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2011 18:18:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=birken@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=birken@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: birken@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:54799] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/30-07146-C5F9C8E4 for ; Wed, 05 Oct 2011 14:18:05 -0400 Received: by vwl1 with SMTP id 1so1860881vwl.29 for ; Wed, 05 Oct 2011 11:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ucmH+yqHONI4sK0EEpSwhLDLUzR3NFdoIDHbU0a+39o=; b=i0jE6O4LvDkIZkHmVwDebVcyXFVm845lkEIwi47U7XMCNM8KFCFxWqImRlL2kbZEQ1 GvpTCgj0WtUqmxWuhyjGvCYpJgC3njHag3vzZN+llUXKtD5fSxQ0G1dBW32kvYrobN+o LSkfulK/JwrIdSdvLnNdPn1PWIQU7qR4GjTbE= MIME-Version: 1.0 Received: by 10.52.24.240 with SMTP id x16mr2784242vdf.113.1317838682032; Wed, 05 Oct 2011 11:18:02 -0700 (PDT) Received: by 10.52.114.39 with HTTP; Wed, 5 Oct 2011 11:18:01 -0700 (PDT) In-Reply-To: References: <8F87845E-CE02-4C98-95DD-33F8AC2F99ED@mohiva.com> Date: Wed, 5 Oct 2011 11:18:01 -0700 Message-ID: To: Chris Stockton Cc: Christian Kaps , "Matthew Weier O'Phinney" , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=bcaec50161df838a4e04ae913a41 Subject: Re: [PHP-DEV] Re: Bug with static property access From: birken@gmail.com (Dan Birken) --bcaec50161df838a4e04ae913a41 Content-Type: text/plain; charset=ISO-8859-1 This does seem strange. To me the error message looks fine, but it is weird that "MethodOne" works while "MethodTwo" doesn't. Seems like both should fail in a perfect world. However, this seems like a situation where bad code is tickling some weird corner case in PHP, not a situation where PHP is doing anything wrong. -Dan On Tue, Oct 4, 2011 at 11:56 PM, Chris Stockton wrote: > Hello, > > On Tue, Oct 4, 2011 at 11:28 PM, Christian Kaps > wrote: > > > > > > It's available since PHP 5.3. This feature is called "late static > binding". > > > > Before anyone else responds to my post, please read the entire message! > > It's simple really, the error message is odd and misleading for the > example code I gave. > > In addition I pointed out later in the thread that LSB is not > supported for class constants, something that could perhaps be added, > although it is likely disabled as a (good) design decision, I could > see use cases where it would be useful. > > Thanks, > > -Chris > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec50161df838a4e04ae913a41--