From 3b4b1a79b6eec7b19974c0bd11b09915ef00a67e Mon Sep 17 00:00:00 2001 From: Ferenc Kovacs Date: Tue, 27 Sep 2011 00:53:41 +0000 Subject: [PATCH] split the ext/calendar/tests/bug53574.phpt into two test, as we expect different result on 32 and 64 bit --- ext/calendar/tests/bug53574_1.phpt | 36 +++++++++++++++++++ .../tests/{bug53574.phpt => bug53574_2.phpt} | 13 +++---- 2 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 ext/calendar/tests/bug53574_1.phpt rename ext/calendar/tests/{bug53574.phpt => bug53574_2.phpt} (75%) diff --git a/ext/calendar/tests/bug53574_1.phpt b/ext/calendar/tests/bug53574_1.phpt new file mode 100644 index 0000000000..51f9b4266f --- /dev/null +++ b/ext/calendar/tests/bug53574_1.phpt @@ -0,0 +1,36 @@ +--TEST-- +Bug #53574 (Integer overflow in SdnToJulian; leads to segfault) +--SKIPIF-- + +--FILE-- + + string(5) "0/0/0" + ["month"]=> + int(0) + ["day"]=> + int(0) + ["year"]=> + int(0) + ["dow"]=> + int(5) + ["abbrevdayname"]=> + string(3) "Fri" + ["dayname"]=> + string(6) "Friday" + ["abbrevmonth"]=> + string(0) "" + ["monthname"]=> + string(0) "" +} + diff --git a/ext/calendar/tests/bug53574.phpt b/ext/calendar/tests/bug53574_2.phpt similarity index 75% rename from ext/calendar/tests/bug53574.phpt rename to ext/calendar/tests/bug53574_2.phpt index e426991354..45e15cb398 100644 --- a/ext/calendar/tests/bug53574.phpt +++ b/ext/calendar/tests/bug53574_2.phpt @@ -1,14 +1,15 @@ --TEST-- Bug #53574 (Integer overflow in SdnToJulian; leads to segfault) --SKIPIF-- - + --FILE--