Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42645 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29898 invoked from network); 15 Jan 2009 19:24:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2009 19:24:10 -0000 Authentication-Results: pb1.pair.com header.from=robert@typo3.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=robert@typo3.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain typo3.org from 217.72.131.73 cause and error) X-PHP-List-Original-Sender: robert@typo3.org X-Host-Fingerprint: 217.72.131.73 mail.elios.de Linux 2.6 Received: from [217.72.131.73] ([217.72.131.73:35699] helo=mail.elios.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/DC-01962-85D8F694 for ; Thu, 15 Jan 2009 14:24:09 -0500 Received: from [192.168.178.31] (p548CF422.dip.t-dialin.net [84.140.244.34]) by mail.elios.de (Postfix) with ESMTP id 45EBC1FE8E8C for ; Thu, 15 Jan 2009 20:23:16 +0100 (CET) Message-ID: To: PHP Developers Mailing List Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Thu, 15 Jan 2009 20:24:01 +0100 X-Mailer: Apple Mail (2.930.3) Subject: Unexpected behavior of $this->$propertyName[...] From: robert@typo3.org (Robert Lemke) Dear internals, please consider the following code executed with PHP 5.3alpha3: 'baz'); public function test() { $propertyName = 'foo'; var_dump(isset($this->foo['bar'])); var_dump(isset($this->$propertyName['bar'])); } } $object = new Foo; $object->test(); ?> Expected output: array 'foo' => array 'bar' => string 'quux' (length=4) Actual output: array 'foo' => array 'bar' => string 'baz' (length=3) 'f' => string 'quux' (length=4) Is this a bug or missing feature? Cheers, robert