Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48108 invoked by uid 1010); 3 May 2004 15:50:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47998 invoked from network); 3 May 2004 15:50:04 -0000 Received: from unknown (HELO amsfep19-int.chello.nl) (213.46.243.20) by pb1.pair.com with SMTP; 3 May 2004 15:50:04 -0000 Received: from iamjochem.com ([213.93.244.198]) by amsfep19-int.chello.nl (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040503155003.KPUT2765.amsfep19-int.chello.nl@iamjochem.com> for ; Mon, 3 May 2004 17:50:03 +0200 Message-ID: <40966A2A.2080209@iamjochem.com> Date: Mon, 03 May 2004 17:50:02 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-gb, en-us, en, nl MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: $this return calling object. From: jochem@iamjochem.com (Jochem Maas) I have discovered behaviour which I imagine is not intended, name referencing $this in a static method that is called from a from the method of an instantiated. (see test code below.) anyone have an explaination for $this is referencing the calling object (at least in the build I'm using)? I'm using PHP Version 5.0.0RC3-dev on an i686 Linux box: PHP API 20031224 PHP Extension 20040412 Zend Extension 220040412 Configure Command '../php5-cvs/configure' '--with-interbase=shared,/opt/firebird' '--prefix=/usr' '--with-regex=system' '--with-config-file-path=/etc/php5/apache' '--enable-calendar' '--enable-ftp' '--with-gettext=shared' '--enable-sysvsem' '--enable-sysvshm' '--enable-trans-sid' '--enable-debug' '--disable-static' '--with-pcre-regex' '--enable-sockets' '--with-zlib-dir=/usr' '--enable-wddx=shared--with-imap=shared,/usr' '--with-kerberos=/usr' '--with-gd=shared,/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr' '--with-zlib=shared,/usr' '--with-xsl=shared,/usr' '--with-apxs=/usr/bin/apxs' '--with-interbase=/opt/interbase' '--with-interbase=/opt/interbase' '--with-gd=shared' thanks in advance, sorry if this is misplaced. ----- test(); ?>