mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +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"
|