mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
15 lines
231 B
PHP
15 lines
231 B
PHP
--TEST--
|
|
Dynamic prop name with type conversion in reference position should not leak
|
|
--FILE--
|
|
<?php
|
|
$obj = new stdClass;
|
|
$name = 0.0;
|
|
$ref =& $obj->$name;
|
|
var_dump($obj);
|
|
?>
|
|
--EXPECT--
|
|
object(stdClass)#1 (1) {
|
|
["0"]=>
|
|
&NULL
|
|
}
|