summaryrefslogtreecommitdiff
path: root/Zend/tests/dynamic_prop_name_leak.phpt
blob: 4f730228020a2a559984899ca6476cc3b913ef49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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
}