xref: /PHP-7.0/Zend/tests/bug38808.phpt (revision 610c7fbe)
1--TEST--
2Bug #38808 ("maybe ref" issue for current() and others)
3--FILE--
4<?php
5$current = "current";
6$next = "next";
7
8$b = array(1=>'one', 2=>'two');
9$a =& $b;
10
11echo $current($a)."\n";
12$next($a);
13echo $current($a)."\n";
14?>
15--EXPECT--
16one
17two