mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
18 lines
243 B
PHP
Executable File
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
|