Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89231 invoked by uid 1010); 20 Dec 2007 23:36:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89216 invoked from network); 20 Dec 2007 23:36:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 23:36:11 -0000 Authentication-Results: pb1.pair.com header.from=malterisio777@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=malterisio777@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.226 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: malterisio777@gmail.com X-Host-Fingerprint: 64.233.162.226 nz-out-0506.google.com Received: from [64.233.162.226] ([64.233.162.226:21529] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/FF-18668-A6CFA674 for ; Thu, 20 Dec 2007 18:36:11 -0500 Received: by nz-out-0506.google.com with SMTP id x7so63332nzc.38 for ; Thu, 20 Dec 2007 15:36:08 -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; bh=5RvNen4l+3QO1LUdMpiCmspPjDBh93nupJ/7GmMSSQI=; b=cx0RiZegY0fwNCWselUWYUnxuEDsPgX1tNiCOpbwP4giRhqlQ/W93nq8Apl3XLYH1BgCnuF422idAGr9Euohj/JgsCE17Rmm5uizZ8+tjE4uazUA0n1etMBpeEwgs7x/WWyOYj82NhE7+A9mgoquaRMYyydC0o+NF2NlDk81qn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=AoVLPUT8FLP9mRVcb0vduuxbCsYLX2tTXURfCXqvsAV6RMkmNH8Jd0I5cgpaViNxZPmN0PDAOsmWcNFskINn/aLCgitkvSIqLB2PnQjba9bNx5Zk3fOf2u8iLXUqI27irA02oZIRLIuB9UyyI6g170cE/eGhXmBFLLBc4Dv1L5A= Received: by 10.142.128.6 with SMTP id a6mr447902wfd.74.1198193768225; Thu, 20 Dec 2007 15:36:08 -0800 (PST) Received: by 10.142.157.9 with HTTP; Thu, 20 Dec 2007 15:36:08 -0800 (PST) Message-ID: <52dbac0f0712201536s7fab82a7y2a7111ca5a11711e@mail.gmail.com> Date: Thu, 20 Dec 2007 20:36:08 -0300 To: "PHP Developers Mailing List" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23392_14929280.1198193768238" Subject: Maybe a problem? undetected name clash makes static method unaccessible through outside static reference From: malterisio777@gmail.com ("Martin Alterisio") ------=_Part_23392_14929280.1198193768238 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Consider the following code: foo.php: foo2.php: test.php: Please review the following observations: There's a name clash that goes undetected: test::foo refers to both a namespaced function and a static method. Once the clash occur there's no way to refer to the static method through a static reference, except when within the class scope where you can refer to the method through self:: The static method remains partially hidden by the namespaced function. Best Regards, Martin Alterisio ------=_Part_23392_14929280.1198193768238--