mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
17 lines
242 B
Plaintext
17 lines
242 B
Plaintext
|
--TEST--
|
||
|
Bug #38808 ("maybe ref" issue for current() and others)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$current = "current";
|
||
|
$next = "next";
|
||
|
|
||
|
$b = array(1=>'one', 2=>'two');
|
||
|
$a =& $b;
|
||
|
|
||
|
echo $current($a)."\n";
|
||
|
$next($a);
|
||
|
echo $current($a)."\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
one
|
||
|
two
|