📄 Viewing: bug73960.phpt

--TEST--
Bug #73960: Leak with instance method calling static method with referenced return
--FILE--
<?php

$value = 'one';
$array = array($value);
$array = $ref =& $array;
var_dump($array);

?>
--EXPECT--
array(1) {
  [0]=>
  string(3) "one"
}

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests