php-src/Zend/tests/bug68163.phpt
2014-10-06 18:45:08 +02:00

14 lines
192 B
PHP

--TEST--
Bug #68163: Using reference as object property name
--FILE--
<?php
$obj = (object) ['foo' => 'bar'];
$foo = 'foo';
$ref =& $foo;
var_dump($obj->$foo);
?>
--EXPECT--
string(3) "bar"