From: SVN Migration Date: Mon, 28 Jul 2003 04:01:33 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.3RC2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6901dc7ba756512d3e6e2b75449a800cd11ad19;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/time/bug13142.phpt b/ext/standard/tests/time/bug13142.phpt new file mode 100644 index 0000000000..6e2bf87d31 --- /dev/null +++ b/ext/standard/tests/time/bug13142.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #13142 strtotime handling of "M d H:i:s Y" format +--SKIPIF-- + +--FILE-- + +--EXPECT-- +Tue, 4 Sep 2001 16:39:45 -0400 +Tue, 4 Sep 2001 16:39:45 -0400 diff --git a/tests/lang/each_binary_safety.phpt b/tests/lang/each_binary_safety.phpt new file mode 100644 index 0000000000..bb13534546 --- /dev/null +++ b/tests/lang/each_binary_safety.phpt @@ -0,0 +1,13 @@ +--TEST-- +Binary safety of each() for both keys and values +--FILE-- + "foo\0bar"); +while (list($key, $val) = each($arr)) { + echo strlen($key), ': '; + echo urlencode($key), ' => ', urlencode($val), "\n"; +} +?> +--EXPECT-- +7: foo%00bar => foo%00bar