mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
20 lines
244 B
PHP
20 lines
244 B
PHP
--TEST--
|
|
Bug #27819 (problems returning reference to a reference parameter)
|
|
--FILE--
|
|
<?php
|
|
function &test(&$thing)
|
|
{
|
|
$thing += 1 ;
|
|
return $thing ;
|
|
}
|
|
|
|
$a = 6 ;
|
|
echo $a . "\n" ;
|
|
$a =& test($a);
|
|
echo $a. "\n" ;
|
|
$a =& test($a);
|
|
?>
|
|
--EXPECT--
|
|
6
|
|
7
|