mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
17 lines
245 B
PHP
17 lines
245 B
PHP
--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"
|
|
}
|