summaryrefslogtreecommitdiff
path: root/Zend/tests/bug38808.phpt
blob: 487a569b6d1f7aaf29146bcaed4630d503ee8b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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