php-src/Zend/tests/bug38808.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

18 lines
243 B
PHP
Executable File

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