Return to each_binary_safety.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 misho 1: --TEST-- 2: Binary safety of each() for both keys and values 3: --FILE-- 4: <?php 5: error_reporting(E_ALL); 6: $arr = array ("foo\0bar" => "foo\0bar"); 7: while (list($key, $val) = each($arr)) { 8: echo strlen($key), ': '; 9: echo urlencode($key), ' => ', urlencode($val), "\n"; 10: } 11: ?> 12: --EXPECT-- 13: 7: foo%00bar => foo%00bar