xref: /PHP-7.4/Zend/tests/bug73960.phpt (revision 29ee3e3c)
1--TEST--
2Bug #73960: Leak with instance method calling static method with referenced return
3--FILE--
4<?php
5
6$value = 'one';
7$array = array($value);
8$array = $ref =& $array;
9var_dump($array);
10
11?>
12--EXPECT--
13array(1) {
14  [0]=>
15  string(3) "one"
16}
17