1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/bug68163.phpt
Nikita Popov 03c726d728 Fix bug #68163
2014-10-06 18:45:08 +02:00

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"