Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34038 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78055 invoked by uid 1010); 14 Dec 2007 23:07:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78040 invoked from network); 14 Dec 2007 23:07:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2007 23:07:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=mjijackson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mjijackson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.235 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mjijackson@gmail.com X-Host-Fingerprint: 64.233.162.235 nz-out-0506.google.com Received: from [64.233.162.235] ([64.233.162.235:28338] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/B2-58345-FBC03674 for ; Fri, 14 Dec 2007 18:07:44 -0500 Received: by nz-out-0506.google.com with SMTP id x7so704393nzc.38 for ; Fri, 14 Dec 2007 15:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=44gTeMZ6KiCsVgIUZWBHwYJrCevPOSjZEAjcXF0JshY=; b=IhIuoCzofib/4ZpDRGGOAUZB6u1Dh0EUW8Tgm7gJ5PlyOKWFlfJ327ck7vIl81lCAtUjKCrcMi/DOhCVN6QgWpkBZ6PNuRl6gGu2FwM2bK6t6Ch41EuUTDexMzkkefubt2tlv8v3fGU8nu6Q8JADYbJ2akxm9ozJQeyvco5uA2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Vi3oiN6Hjx3gqzqwR2lvGSvnuwffgYS4I1C/qAiqsjl8+casyDNx2ZgfNDSOwfFp4wcuKyiG7JpvxLqK7futmR81+FLr6MsOdt85u4rSf28n8YlPMS8DJBRfC9prZoajsaBD2njQtmRRfX0Ei6aWwJKESU/jj8ffBEfyrFl4kIg= Received: by 10.142.246.8 with SMTP id t8mr1945783wfh.220.1197673659461; Fri, 14 Dec 2007 15:07:39 -0800 (PST) Received: by 10.143.174.6 with HTTP; Fri, 14 Dec 2007 15:07:39 -0800 (PST) Message-ID: <9cd0f6980712141507y41ff348ay74caf5510856ec99@mail.gmail.com> Date: Fri, 14 Dec 2007 16:07:39 -0700 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: New "static" keyword doesn't have private access? From: mjijackson@gmail.com ("Michael J. I. Jackson") Hello all, I'm playing around with 5.3, and I noticed the following interesting behavior: class A { private static $cls = __CLASS__; public static function who() { print static::$cls; } } class B extends A { private static $cls = __CLASS__; } B::who(); // Fatal error: Cannot access private property B::$cls I understand why this is happening, but IMO, this should not be throwing an error. If "static" is supposed to be referencing the "called class", we need a way to access ALL of the variables of that class from its parent classes. Otherwise, there is no way to create static class variables that won't be inherited in a hierarchy. If there is, and I'm missing it, please forgive me and point it out. Regards, Michael