Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95322 invoked from network); 12 Dec 2011 13:45:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2011 13:45:25 -0000 Received: from [127.0.0.1] ([127.0.0.1:24277]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 54/02-17834-57506EE4 for ; Mon, 12 Dec 2011 08:45:25 -0500 Authentication-Results: pb1.pair.com header.from=bogdan.bezuz@emag.ro; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=prvs=1327D128C9=bogdan.bezuz@emag.ro; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain emag.ro designates 91.206.36.74 as permitted sender) X-PHP-List-Original-Sender: prvs=1327D128C9=bogdan.bezuz@emag.ro X-Host-Fingerprint: 91.206.36.74 mail.emag.ro Received: from [91.206.36.74] ([91.206.36.74:49877] helo=webmail.emag.ro) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/D1-17834-88306EE4 for ; Mon, 12 Dec 2011 08:37:13 -0500 Received: from [192.168.12.79] (192.168.12.79) by srv-exch.emag.local (192.168.1.74) with Microsoft SMTP Server id 14.1.355.2; Mon, 12 Dec 2011 15:37:01 +0200 Message-ID: <4EE60332.7000809@emag.ro> Date: Mon, 12 Dec 2011 15:35:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.12.79] Subject: Unexpected behavior for :: From: bogdan.bezuz@emag.ro (Bogdan Bezuz) Hello, I'm not sure if this is the desired behavior and i don't want to submit a bogus bug report. class A { public function f1() { var_dump($this->_b); } } class B { public $_b = 'stuff'; public function f2() { A::f1(); } } $b = new B(); $b->f2(); At first i would expect an error since A was not instantiated, at most i would expect to return NULL but not 'stuff'. Is this a bug ?