summaryrefslogtreecommitdiff
path: root/Zend/tests/bug68163.phpt
blob: 2ea0da33d65a719263f6015ef44977c8dfd5a974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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"