Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11822 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97722 invoked by uid 1010); 2 Aug 2004 14:02:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97698 invoked from network); 2 Aug 2004 14:02:30 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 2 Aug 2004 14:02:30 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i72E2TJa017859 for ; Mon, 2 Aug 2004 16:02:29 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i72E2N5X017832; Mon, 2 Aug 2004 16:02:24 +0200 Date: Mon, 2 Aug 2004 16:02:23 +0200 (CEST) X-X-Sender: derick@localhost To: Kamesh Jayachandran cc: Mehdi Achour , internals@lists.php.net In-Reply-To: <1091454382.4136.201524319@webmail.messagingengine.com> Message-ID: References: <1091021521.30562.201240234@webmail.messagingengine.com> <4107D00C.4050505@php.net> <1091454382.4136.201524319@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] Re: How to access the per-class constant from a member function? From: derick@php.net (Derick Rethans) On Mon, 2 Aug 2004, Kamesh Jayachandran wrote: > Hi Mehdi, > Even Foo::HELLO works. > My question is why simple HELLO inside a member function does not work. > > Why are we not able to access the static and const members of a class > from inside a class member function like the way with other member > variables.? Other member variables don't work either like this, you need to specify $this-> always. Derick