[PHP-DEV] PHP 4.0 Bug #5289: Use of reset on a global array creates local array in function From: alan.frostick <email protected>
Date: 06/30/00

From: alan.frostick <email protected>
Operating system: SunOS Solaris
PHP version: 4.0.1
PHP Bug Type: Scripting Engine problem
Bug description: Use of reset on a global array creates local array in function

$arr[]="something";

function test()
{
        global $arr;

        unset($arr); // removes global effect for variable
                        // workaround here is
        # global $arr;
        $arr[]="a value";
}

        test();
        $a=each($arr);
        echo $a["value"];

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>