Date: 06/30/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5289 Updated: Use of reset on a global array creates local array in function"
- Previous message: Jason: "RE: [PHP-DEV] We Want Quality"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5289 Updated: Use of reset on a global array creates local array in function"
- Previous message: Jason: "RE: [PHP-DEV] We Want Quality"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

