php-src/Zend/tests/bug38808.phpt
2012-10-10 10:27:49 +08:00

17 lines
242 B
PHP

--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