cvs: ZendEngine2(PHP_5_3) /tests foreach_unset_globals.phpt

"Antony Dovgal" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvstony20011218403448@cvsserver>
tony2001		Sun Aug 10 21:24:08 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /ZendEngine2/tests	foreach_unset_globals.phpt 
  Log:
  new test
  
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/foreach_unset_globals.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/foreach_unset_globals.phpt
+++ ZendEngine2/tests/foreach_unset_globals.phpt
--TEST--
traverse an array and use its keys to unset GLOBALS
--FILE--
<?php

$arr = array("a" => 1, "b" => 2);
foreach ($arr as $key => $val) {
	unset($GLOBALS[$key]);
}

var_dump($arr);
echo "Done\n";
?>
--EXPECTF--	
array(2) {
  [u"a"]=>
  int(1)
  [u"b"]=>
  int(2)
}
Done



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.