Dear internals,
please consider the following code executed with PHP 5.3alpha3:
?php
class Foo {
protected $foo = array('bar' = 'baz');
public function test() {
$propertyName = 'foo';
var_dump(isset($this-foo['bar']));
On Thu, Jan 15, 2009 at 7:24 PM, Robert Lemke rob...@typo3.org 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']
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
Hello,
On Thu, Jan 15, 2009 at 8:24 PM, Robert Lemke rob...@typo3.org wrote:
Dear internals,
please consider the following code executed with PHP 5.3alpha3:
?php
class Foo {
protected $foo = array('bar' = 'baz');
public function test() {
$propertyName =