cvs: php-src /tests/lang each_binary_safety.phpt

From: Date: Thu, 24 Jul 2003 13:08:35 +0000
Subject: cvs: php-src /tests/lang each_binary_safety.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22773@lists.php.net to get a copy of this message
zeev Thu Jul 24 09:08:35 2003 EDT Added files: /php-src/tests/lang each_binary_safety.phpt Log: Add test for binary safety of each() Index: php-src/tests/lang/each_binary_safety.phpt +++ php-src/tests/lang/each_binary_safety.phpt --TEST-- Binary safety of each() for both keys and values --FILE-- <?php error_reporting(E_ALL); $arr = array ("foo\0bar" => "foo\0bar"); while (list($key, $val) = each($arr)) { echo strlen($key), ': '; echo urlencode($key), ' => ', urlencode($val), "\n"; } ?> --EXPECT-- 7: foo%00bar => foo%00bar

« previous php.cvs (#22773) next »