mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
14 lines
192 B
PHP
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"
|