mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +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"
|