Hello,
On Thu, Jan 15, 2009 at 8:24 PM, Robert Lemke wrote:
> Dear internals,
>
> please consider the following code executed with PHP 5.3alpha3:
>
> class Foo {
>protected $foo = array('bar' => 'baz');
>
>public function test() {
>$propertyName = 'foo';
>
Hi Paul,
Am 15.01.2009 um 20:35 schrieb Paul Biggar:
I suspect neither bug nor feature. I think you expect that
$this->$propertyName['bar']
is the same as:
($this->$propertyName)['bar']
but in fact it is:
$this->($propertyName['bar'])
So in your example, 'bar' is the string index 0
On Thu, Jan 15, 2009 at 7:24 PM, Robert Lemke wrote:
> Dear internals,
>
> please consider the following code executed with PHP 5.3alpha3:
I suspect neither bug nor feature. I think you expect that
$this->$propertyName['bar']
is the same as:
($this->$propertyName)['bar']
but in fact it