From d9a51ce4832649ce57fb9284da32f4918d9cd6d5 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 17 Jan 2009 17:34:45 +0000 Subject: [PATCH] - New test --- ext/dbase/tests/bug46282.phpt | 100 ++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 ext/dbase/tests/bug46282.phpt diff --git a/ext/dbase/tests/bug46282.phpt b/ext/dbase/tests/bug46282.phpt new file mode 100644 index 0000000000..194b2b5b16 --- /dev/null +++ b/ext/dbase/tests/bug46282.phpt @@ -0,0 +1,100 @@ +--TEST-- +Bug #46282 (Corrupt DBF When Using DATE) +--FILE-- + +--EXPECTF-- +array(5) { + [0]=> + string(8) "20090117" + [1]=> + string(50) "Name #0 " + [2]=> + string(128) "Email #0 " + [3]=> + int(1) + ["deleted"]=> + int(0) +} +array(5) { + [0]=> + string(8) "20090117" + [1]=> + string(50) "Name #1 " + [2]=> + string(128) "Email #1 " + [3]=> + int(1) + ["deleted"]=> + int(0) +} +array(5) { + [0]=> + string(8) "20090117" + [1]=> + string(50) "Name #2 " + [2]=> + string(128) "Email #2 " + [3]=> + int(1) + ["deleted"]=> + int(0) +} +array(5) { + [0]=> + string(8) "20090117" + [1]=> + string(50) "Name #3 " + [2]=> + string(128) "Email #3 " + [3]=> + int(1) + ["deleted"]=> + int(0) +} +array(5) { + [0]=> + string(8) "20090117" + [1]=> + string(50) "Name #4 " + [2]=> + string(128) "Email #4 " + [3]=> + int(1) + ["deleted"]=> + int(0) +} -- 2.50.1