Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10831 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8000 invoked by uid 1010); 28 Jun 2004 17:49:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7918 invoked by uid 1007); 28 Jun 2004 17:49:05 -0000 Message-ID: <20040628174905.7917.qmail@pb1.pair.com> To: internals@lists.php.net Date: Mon, 28 Jun 2004 19:48:37 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 81.57.128.152 Subject: #20760 : is it really the intended behavior ? From: didou@php.net (Mehdi Achour) Hi internals, Trying to close some documentation bugs, I saw #20760. Here's the problem : class Foo { var $bla; function quux() { $this->bla = 5; } } class Bar { var $bla; function do_stuff() { $this->bla = 10; Foo::quux(); echo $this->bla; } } $blabla = new Bar; $blabla->do_stuff(); // will print 5, Foo::$bar value Derick claimed that it was an intended behavior, I'd like to make sure before documenting it. I'd also like to know why do we have this feature ? It's quiet confusing. Thank you in advance, Mehdi Achour