xref: /PHP-8.3/Zend/tests/bug68163.phpt (revision 03c726d7)
1--TEST--
2Bug #68163: Using reference as object property name
3--FILE--
4<?php
5
6$obj = (object) ['foo' => 'bar'];
7$foo = 'foo';
8$ref =& $foo;
9var_dump($obj->$foo);
10
11?>
12--EXPECT--
13string(3) "bar"
14