From a6901dc7ba756512d3e6e2b75449a800cd11ad19 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Mon, 28 Jul 2003 04:01:33 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- ext/standard/tests/time/bug13142.phpt | 16 ++++++++++++++++ tests/lang/each_binary_safety.phpt | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 ext/standard/tests/time/bug13142.phpt create mode 100644 tests/lang/each_binary_safety.phpt 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 -- 2.50.1