summaryrefslogtreecommitdiff
path: root/ext/date/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests')
-rw-r--r--ext/date/tests/002.phpt93
-rw-r--r--ext/date/tests/003.phpt47
-rw-r--r--ext/date/tests/004.phpt73
-rw-r--r--ext/date/tests/005.phpt45
-rw-r--r--ext/date/tests/006.phpt33
-rw-r--r--ext/date/tests/007.phpt101
-rw-r--r--ext/date/tests/008.phpt67
-rw-r--r--ext/date/tests/009.phpt46
-rw-r--r--ext/date/tests/bug13142.phpt20
-rw-r--r--ext/date/tests/bug14561.phpt11
-rw-r--r--ext/date/tests/bug17988.phpt33
-rw-r--r--ext/date/tests/bug20382-1.phpt16
-rw-r--r--ext/date/tests/bug20382-2.phpt170
-rw-r--r--ext/date/tests/bug21399.phpt9
-rw-r--r--ext/date/tests/bug21966.phpt19
-rw-r--r--ext/date/tests/bug26090.phpt14
-rw-r--r--ext/date/tests/bug26198.phpt11
-rw-r--r--ext/date/tests/bug26317.phpt17
-rw-r--r--ext/date/tests/bug26320.phpt15
-rw-r--r--ext/date/tests/bug26694.phpt9
-rw-r--r--ext/date/tests/bug27719.phpt67
-rw-r--r--ext/date/tests/bug27780.phpt113
-rw-r--r--ext/date/tests/bug28024.phpt11
-rw-r--r--ext/date/tests/bug28088.phpt17
-rw-r--r--ext/date/tests/bug28599.phpt9
-rw-r--r--ext/date/tests/bug29150.phpt9
-rw-r--r--ext/date/tests/bug29585.phpt9
-rw-r--r--ext/date/tests/bug29595.phpt11
-rw-r--r--ext/date/tests/bug30096.phpt48
-rw-r--r--ext/date/tests/bug30532.phpt23
-rw-r--r--ext/date/tests/bug32086.phpt49
-rw-r--r--ext/date/tests/bug32270.phpt25
-rw-r--r--ext/date/tests/bug32555.phpt17
-rw-r--r--ext/date/tests/bug32588.phpt13
-rw-r--r--ext/date/tests/bug33056.phpt13
-rw-r--r--ext/date/tests/bug33414-1.phpt320
-rw-r--r--ext/date/tests/bug33414-2.phpt121
-rw-r--r--ext/date/tests/bug33415-1.phpt33
-rw-r--r--ext/date/tests/bug33415-2.phpt342
-rw-r--r--ext/date/tests/bug33452.phpt11
-rw-r--r--ext/date/tests/bug33532.phpt38
-rw-r--r--ext/date/tests/bug33536.phpt13
-rw-r--r--ext/date/tests/bug33562.phpt11
-rw-r--r--ext/date/tests/bug33563.phpt12
-rw-r--r--ext/date/tests/bug33578.phpt21
-rw-r--r--ext/date/tests/bug33869.phpt26
-rw-r--r--ext/date/tests/bug33957.phpt103
-rw-r--r--ext/date/tests/bug34087.phpt20
-rw-r--r--ext/date/tests/bug34304.phpt11
-rw-r--r--ext/date/tests/bug34676.phpt19
-rw-r--r--ext/date/tests/bug34771.phpt32
-rw-r--r--ext/date/tests/bug35143.phpt21
-rw-r--r--ext/date/tests/bug35218.phpt14
-rw-r--r--ext/date/tests/bug35414.phpt16
-rw-r--r--ext/date/tests/bug35422.phpt12
-rw-r--r--ext/date/tests/bug35425.phpt30
-rw-r--r--ext/date/tests/bug35456.phpt16
-rw-r--r--ext/date/tests/bug35499.phpt16
-rw-r--r--ext/date/tests/bug35624.phpt29
-rw-r--r--ext/date/tests/bug35630.phpt11
-rw-r--r--ext/date/tests/bug35699.phpt14
-rw-r--r--ext/date/tests/bug35705.phpt11
-rw-r--r--ext/date/tests/bug35885.phpt14
-rw-r--r--ext/date/tests/bug35887.phpt11
-rw-r--r--ext/date/tests/bug36224.phpt13
-rw-r--r--ext/date/tests/bug36510.phpt14
-rw-r--r--ext/date/tests/bug36599.phpt12
-rw-r--r--ext/date/tests/bug36988.phpt12
-rw-r--r--ext/date/tests/bug37017.phpt16
-rw-r--r--ext/date/tests/bug37368.phpt10
-rw-r--r--ext/date/tests/bug37514.phpt20
-rw-r--r--ext/date/tests/bug37616.phpt9
-rw-r--r--ext/date/tests/bug37747.phpt11
-rw-r--r--ext/date/tests/bug38229.phpt13
-rw-r--r--ext/date/tests/date.phpt22
-rw-r--r--ext/date/tests/date_constants.phpt75
-rw-r--r--ext/date/tests/date_create-1.phpt48
-rw-r--r--ext/date/tests/date_create-2.phpt12
-rw-r--r--ext/date/tests/date_default_timezone_get-1.phpt16
-rw-r--r--ext/date/tests/date_default_timezone_get-2.phpt12
-rw-r--r--ext/date/tests/date_default_timezone_get-3.phpt15
-rw-r--r--ext/date/tests/date_default_timezone_set-1.phpt28
-rw-r--r--ext/date/tests/date_modify-1.phpt30
-rw-r--r--ext/date/tests/date_modify-2.phpt15
-rw-r--r--ext/date/tests/default-timezone-1.phpt11
-rw-r--r--ext/date/tests/default-timezone-2.phpt11
-rw-r--r--ext/date/tests/format-negative-timestamp.phpt24
-rw-r--r--ext/date/tests/mktime-1.phpt44
-rw-r--r--ext/date/tests/mktime-2.phpt51
-rw-r--r--ext/date/tests/mktime-3.phpt54
-rw-r--r--ext/date/tests/oo_001.phpt53
-rw-r--r--ext/date/tests/oo_002.phpt28
-rwxr-xr-xext/date/tests/strtotime-mysql.phpt25
-rw-r--r--ext/date/tests/strtotime.phpt16
-rw-r--r--ext/date/tests/strtotime2.phpt40
-rw-r--r--ext/date/tests/strtotime3.phpt69
-rw-r--r--ext/date/tests/timezone-configuration.phpt19
-rw-r--r--ext/date/tests/timezones.phpt26
98 files changed, 0 insertions, 3505 deletions
diff --git a/ext/date/tests/002.phpt b/ext/date/tests/002.phpt
deleted file mode 100644
index 7384b74244..0000000000
--- a/ext/date/tests/002.phpt
+++ /dev/null
@@ -1,93 +0,0 @@
---TEST--
-strtotime() function
---SKIPIF--
-<?php
-if (!@putenv("TZ=EST5") || getenv("TZ") != 'EST5') {
- die("skip unable to change TZ enviroment variable\n");
-}
-?>
---FILE--
-<?php
- $dates = array (
- "1999-10-13",
- "Oct 13 1999",
- "2000-01-19",
- "Jan 19 2000",
- "2001-12-21",
- "Dec 21 2001",
- "2001-12-21 12:16",
- "Dec 21 2001 12:16",
- "Dec 21 12:16",
- "2001-10-22 21:19:58",
- "2001-10-22 21:19:58-02",
- "2001-10-22 21:19:58-0213",
- "2001-10-22 21:19:58+02",
- "2001-10-22 21:19:58+0213",
- "2001-10-22T21:20:58-03:40",
- "2001-10-22T211958-2",
- "20011022T211958+0213",
- "20011022T21:20+0215",
- "1997W011",
- "2004W101T05:00+0",
- );
-
- echo "*** GMT0\n";
- putenv ("TZ=GMT0");
- foreach ($dates as $date) {
- echo date ("Y-m-d H:i:s\n", strtotime ($date));
- }
-
- echo "*** US/Eastern\n";
- putenv("TZ=US/Eastern");
- if( date("T") == "GMT" ) {
- // POSIX style
- putenv ("TZ=EST5EDT4,M4.1.0,M10.5.0");
- }
-
- foreach ($dates as $date) {
- echo date ("Y-m-d H:i:s\n", strtotime ($date));
- }
-?>
---EXPECTF--
-*** GMT0
-1999-10-13 00:00:00
-1999-10-13 00:00:00
-2000-01-19 00:00:00
-2000-01-19 00:00:00
-2001-12-21 00:00:00
-2001-12-21 00:00:00
-2001-12-21 12:16:00
-2001-12-21 12:16:00
-%d-12-21 12:16:00
-2001-10-22 21:19:58
-2001-10-22 23:19:58
-2001-10-22 23:32:58
-2001-10-22 19:19:58
-2001-10-22 19:06:58
-2001-10-23 01:00:58
-2001-10-22 23:19:58
-2001-10-22 19:06:58
-2001-10-22 19:05:00
-1996-12-30 00:00:00
-2004-03-01 05:00:00
-*** US/Eastern
-1999-10-13 00:00:00
-1999-10-13 00:00:00
-2000-01-19 00:00:00
-2000-01-19 00:00:00
-2001-12-21 00:00:00
-2001-12-21 00:00:00
-2001-12-21 12:16:00
-2001-12-21 12:16:00
-%d-12-21 12:16:00
-2001-10-22 21:19:58
-2001-10-22 19:19:58
-2001-10-22 19:32:58
-2001-10-22 15:19:58
-2001-10-22 15:06:58
-2001-10-22 21:00:58
-2001-10-22 19:19:58
-2001-10-22 15:06:58
-2001-10-22 15:05:00
-1996-12-30 00:00:00
-2004-03-01 00:00:00
diff --git a/ext/date/tests/003.phpt b/ext/date/tests/003.phpt
deleted file mode 100644
index 621a87b341..0000000000
--- a/ext/date/tests/003.phpt
+++ /dev/null
@@ -1,47 +0,0 @@
---TEST--
-date suffixes test
---INI--
-date.timezone=UTC
---FILE--
-<?php
-
-for ($i = 0; $i < 32; $i++) {
- var_dump(date("jS", mktime(0,0,0, 1, $i, 2006)));
-}
-
-echo "Done\n";
-?>
---EXPECTF--
-string(4) "31st"
-string(3) "1st"
-string(3) "2nd"
-string(3) "3rd"
-string(3) "4th"
-string(3) "5th"
-string(3) "6th"
-string(3) "7th"
-string(3) "8th"
-string(3) "9th"
-string(4) "10th"
-string(4) "11th"
-string(4) "12th"
-string(4) "13th"
-string(4) "14th"
-string(4) "15th"
-string(4) "16th"
-string(4) "17th"
-string(4) "18th"
-string(4) "19th"
-string(4) "20th"
-string(4) "21st"
-string(4) "22nd"
-string(4) "23rd"
-string(4) "24th"
-string(4) "25th"
-string(4) "26th"
-string(4) "27th"
-string(4) "28th"
-string(4) "29th"
-string(4) "30th"
-string(4) "31st"
-Done
diff --git a/ext/date/tests/004.phpt b/ext/date/tests/004.phpt
deleted file mode 100644
index 33e1fc7910..0000000000
--- a/ext/date/tests/004.phpt
+++ /dev/null
@@ -1,73 +0,0 @@
---TEST--
-date() format params
---FILE--
-<?php
-
-date_default_timezone_set("UTC");
-$tz = array("UTC", "Asia/Jerusalem", "America/Chicago", "Europe/London");
-$t = mktime(0, 0, 0, 6, 27, 2006);
-
-foreach ($tz as $zone) {
- date_default_timezone_set($zone);
-
- var_dump(date("w", $t));
- var_dump(date("z", $t));
- var_dump(date("n", $t));
- var_dump(date("t", $t));
- var_dump(date("L", $t));
- var_dump(date("a", $t));
- var_dump(date("B", $t));
- var_dump(date("g", $t));
- var_dump(date("G", $t));
- var_dump(date("Z", $t));
- var_dump(date("U", $t));
-}
-
-echo "Done\n";
-?>
---EXPECTF--
-string(1) "2"
-string(3) "177"
-string(1) "6"
-string(2) "30"
-string(1) "0"
-string(2) "am"
-string(3) "041"
-string(2) "12"
-string(1) "0"
-string(1) "0"
-string(10) "1151366400"
-string(1) "2"
-string(3) "177"
-string(1) "6"
-string(2) "30"
-string(1) "0"
-string(2) "am"
-string(3) "041"
-string(1) "3"
-string(1) "3"
-string(5) "10800"
-string(10) "1151366400"
-string(1) "1"
-string(3) "176"
-string(1) "6"
-string(2) "30"
-string(1) "0"
-string(2) "pm"
-string(3) "041"
-string(1) "7"
-string(2) "19"
-string(6) "-18000"
-string(10) "1151366400"
-string(1) "2"
-string(3) "177"
-string(1) "6"
-string(2) "30"
-string(1) "0"
-string(2) "am"
-string(3) "041"
-string(1) "1"
-string(1) "1"
-string(4) "3600"
-string(10) "1151366400"
-Done
diff --git a/ext/date/tests/005.phpt b/ext/date/tests/005.phpt
deleted file mode 100644
index c6551b76b4..0000000000
--- a/ext/date/tests/005.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-idate() and invalid params
---INI--
-date.timezone=UTC
---FILE--
-<?php
-
-$t = mktime(0,0,0, 6, 27, 2006);
-
-var_dump(idate());
-var_dump(idate(1,1,1));
-
-var_dump(idate(1,1));
-var_dump(idate(""));
-var_dump(idate(0));
-
-var_dump(idate("B", $t));
-var_dump(idate("[", $t));
-var_dump(idate("'"));
-
-echo "Done\n";
-?>
---EXPECTF--
-Warning: idate() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-
-Warning: idate() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-
-Warning: idate(): Unrecognized date format token. in %s on line %d
-bool(false)
-
-Warning: idate(): idate format is one char in %s on line %d
-bool(false)
-
-Warning: idate(): Unrecognized date format token. in %s on line %d
-bool(false)
-int(41)
-
-Warning: idate(): Unrecognized date format token. in %s on line %d
-bool(false)
-
-Warning: idate(): Unrecognized date format token. in %s on line %d
-bool(false)
-Done
diff --git a/ext/date/tests/006.phpt b/ext/date/tests/006.phpt
deleted file mode 100644
index 407242b161..0000000000
--- a/ext/date/tests/006.phpt
+++ /dev/null
@@ -1,33 +0,0 @@
---TEST--
-checkdate() tests
---INI--
-date.timezone=UTC
---FILE--
-<?php
-
-var_dump(checkdate());
-var_dump(checkdate(1,1,1));
-
-var_dump(checkdate(2,29,2006));
-var_dump(checkdate(31,6,2006));
-var_dump(checkdate(1,1,32768));
-var_dump(checkdate(1,1,32767));
-
-var_dump(checkdate(-1,1,2006));
-var_dump(checkdate(1,-1,2006));
-var_dump(checkdate(1,1,-1));
-
-echo "Done\n";
-?>
---EXPECTF--
-Warning: checkdate() expects exactly 3 parameters, 0 given in %s on line %d
-bool(false)
-bool(true)
-bool(false)
-bool(false)
-bool(false)
-bool(true)
-bool(false)
-bool(false)
-bool(false)
-Done
diff --git a/ext/date/tests/007.phpt b/ext/date/tests/007.phpt
deleted file mode 100644
index f0c8784659..0000000000
--- a/ext/date/tests/007.phpt
+++ /dev/null
@@ -1,101 +0,0 @@
---TEST--
-localtime() tests
---INI--
-date.timezone=UTC
---FILE--
-<?php
-
-$t = mktime(0,0,0, 6, 27, 2006);
-var_dump(localtime(1,1,1));
-
-var_dump(localtime());
-var_dump(localtime($t));
-var_dump(localtime($t, true));
-var_dump(localtime($t, false));
-
-echo "Done\n";
-?>
---EXPECTF--
-Warning: localtime() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(9) {
- [0]=>
- int(%d)
- [1]=>
- int(%d)
- [2]=>
- int(%d)
- [3]=>
- int(%d)
- [4]=>
- int(%d)
- [5]=>
- int(%d)
- [6]=>
- int(%d)
- [7]=>
- int(%d)
- [8]=>
- int(%d)
-}
-array(9) {
- [0]=>
- int(0)
- [1]=>
- int(0)
- [2]=>
- int(0)
- [3]=>
- int(27)
- [4]=>
- int(5)
- [5]=>
- int(106)
- [6]=>
- int(2)
- [7]=>
- int(177)
- [8]=>
- int(0)
-}
-array(9) {
- ["tm_sec"]=>
- int(0)
- ["tm_min"]=>
- int(0)
- ["tm_hour"]=>
- int(0)
- ["tm_mday"]=>
- int(27)
- ["tm_mon"]=>
- int(5)
- ["tm_year"]=>
- int(106)
- ["tm_wday"]=>
- int(2)
- ["tm_yday"]=>
- int(177)
- ["tm_isdst"]=>
- int(0)
-}
-array(9) {
- [0]=>
- int(0)
- [1]=>
- int(0)
- [2]=>
- int(0)
- [3]=>
- int(27)
- [4]=>
- int(5)
- [5]=>
- int(106)
- [6]=>
- int(2)
- [7]=>
- int(177)
- [8]=>
- int(0)
-}
-Done
diff --git a/ext/date/tests/008.phpt b/ext/date/tests/008.phpt
deleted file mode 100644
index 424e156783..0000000000
--- a/ext/date/tests/008.phpt
+++ /dev/null
@@ -1,67 +0,0 @@
---TEST--
-getdate() tests
---INI--
-date.timezone=UTC
---FILE--
-<?php
-
-$t = mktime(0,0,0, 6, 27, 2006);
-var_dump(getdate(1,1));
-
-var_dump(getdate($t));
-var_dump(getdate());
-
-echo "Done\n";
-?>
---EXPECTF--
-Warning: getdate() expects at most 1 parameter, 2 given in %s on line %d
-bool(false)
-array(11) {
- ["seconds"]=>
- int(0)
- ["minutes"]=>
- int(0)
- ["hours"]=>
- int(0)
- ["mday"]=>
- int(27)
- ["wday"]=>
- int(2)
- ["mon"]=>
- int(6)
- ["year"]=>
- int(2006)
- ["yday"]=>
- int(177)
- ["weekday"]=>
- string(7) "Tuesday"
- ["month"]=>
- string(4) "June"
- [0]=>
- int(1151366400)
-}
-array(11) {
- ["seconds"]=>
- int(%d)
- ["minutes"]=>
- int(%d)
- ["hours"]=>
- int(%d)
- ["mday"]=>
- int(%d)
- ["wday"]=>
- int(%d)
- ["mon"]=>
- int(%d)
- ["year"]=>
- int(%d)
- ["yday"]=>
- int(%d)
- ["weekday"]=>
- string(%d) "%s"
- ["month"]=>
- string(%d) "%s"
- [0]=>
- int(%d)
-}
-Done
diff --git a/ext/date/tests/009.phpt b/ext/date/tests/009.phpt
deleted file mode 100644
index 0ce7b7e0ba..0000000000
--- a/ext/date/tests/009.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-strftime() and gmstrftime() tests
---INI--
-date.timezone=Asia/Jerusalem
---FILE--
-<?php
-
-$t = mktime(0,0,0, 6, 27, 2006);
-
-var_dump(strftime());
-
-var_dump(strftime(""));
-var_dump(strftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));
-var_dump(strftime("%%q %%a", $t));
-var_dump(strftime("%q", $t));
-var_dump(strftime("blah", $t));
-
-var_dump(gmstrftime());
-
-var_dump(gmstrftime(""));
-var_dump(gmstrftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));
-var_dump(gmstrftime("%%q %%a", $t));
-var_dump(gmstrftime("%q", $t));
-var_dump(gmstrftime("blah", $t));
-
-echo "Done\n";
-?>
---EXPECTF--
-Warning: strftime() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-bool(false)
-string(%d) "Tue Tuesday Jun June Tue Jun 27 00:00:00 2006 %s
-%s %"
-string(5) "%q %a"
-string(%d) "%s"
-string(4) "blah"
-
-Warning: gmstrftime() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-bool(false)
-string(%d) "Mon Monday Jun June Mon Jun 26 21:00:00 2006 %s
-%s %"
-string(5) "%q %a"
-string(%d) "%s"
-string(4) "blah"
-Done
diff --git a/ext/date/tests/bug13142.phpt b/ext/date/tests/bug13142.phpt
deleted file mode 100644
index 5e54263c54..0000000000
--- a/ext/date/tests/bug13142.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #13142 (strtotime handling of "M d H:i:s Y" format)
---SKIPIF--
-<?php
-if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') {
- die("skip unable to change TZ enviroment variable\n");
-}
-?>
---FILE--
-<?php
-putenv("TZ=US/Eastern");
-if (date('T') == 'GMT') {
- putenv("TZ=EST5EDT4,M4.1.0,M10.5.0");
-}
-echo date("r\n", strtotime("Sep 04 16:39:45 2001"));
-echo date("r\n", strtotime("Sep 04 2001 16:39:45"));
-?>
---EXPECT--
-Tue, 04 Sep 2001 16:39:45 -0400
-Tue, 04 Sep 2001 16:39:45 -0400
diff --git a/ext/date/tests/bug14561.phpt b/ext/date/tests/bug14561.phpt
deleted file mode 100644
index 98638c3e4b..0000000000
--- a/ext/date/tests/bug14561.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #14561 (strtotime() bug)
---FILE--
-<?php
-putenv("TZ=GMT");
-echo strtotime("19:30 Dec 17 2005"), "\n";
-echo strtotime("Dec 17 19:30 2005"), "\n";
-?>
---EXPECT--
-1134847800
-1134847800
diff --git a/ext/date/tests/bug17988.phpt b/ext/date/tests/bug17988.phpt
deleted file mode 100644
index 259fa7dc2e..0000000000
--- a/ext/date/tests/bug17988.phpt
+++ /dev/null
@@ -1,33 +0,0 @@
---TEST--
-Bug #17988 (strtotime handling of postgresql timestamps)
---FILE--
-<?php
-putenv("TZ=GMT");
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MET"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MEST"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0300"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0330"))."\n";
-echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0330"))."\n";
-?>
---EXPECT--
-2002-06-25 14:18:48
-2002-06-25 14:18:48
-2002-06-25 13:18:48
-2002-06-25 12:18:48
-2002-06-25 18:18:48
-2002-06-25 14:18:48
-2002-06-25 14:18:48
-2002-06-25 18:18:48
-2002-06-25 10:18:48
-2002-06-25 17:18:48
-2002-06-25 11:18:48
-2002-06-25 17:48:48
-2002-06-25 10:48:48
diff --git a/ext/date/tests/bug20382-1.phpt b/ext/date/tests/bug20382-1.phpt
deleted file mode 100644
index a259d934af..0000000000
--- a/ext/date/tests/bug20382-1.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-Bug #20382 [1] (strtotime ("Monday", $date) produces wrong result on DST changeover)
---FILE--
-<?php
- putenv("TZ=Europe/Amsterdam");
- $tStamp = mktime (17, 17, 17, 10, 27, 2004);
- echo "tStamp=". date("l Y-m-d H:i:s T", $tStamp). "\n";
-
- $strtotime_timestamp = strtotime ("Monday", $tStamp);
- echo "result=". date("l Y-m-d H:i:s T", $strtotime_timestamp). "\n";
- echo "wanted=Monday 2004-11-01 00:00:00 CET\n";
-?>
---EXPECT--
-tStamp=Wednesday 2004-10-27 17:17:17 CEST
-result=Monday 2004-11-01 00:00:00 CET
-wanted=Monday 2004-11-01 00:00:00 CET
diff --git a/ext/date/tests/bug20382-2.phpt b/ext/date/tests/bug20382-2.phpt
deleted file mode 100644
index 639f1b799d..0000000000
--- a/ext/date/tests/bug20382-2.phpt
+++ /dev/null
@@ -1,170 +0,0 @@
---TEST--
-Bug #20382 [2] (strtotime ("Monday", $date) produces wrong result on DST changeover)
---FILE--
-<?php
-
-$tests = array(
- array("Europe/Andorra", 17, 17, 17, 1, 24764, 1970),
- array("Asia/Dubai", 17, 17, 17, 1, 1, 1970),
- array("Asia/Kabul", 17, 17, 17, 1, 1, 1970),
- array("America/Antigua", 17, 17, 17, 1, 1, 1970),
- array("America/Anguilla", 17, 17, 17, 1, 1, 1970),
- array("Europe/Tirane", 17, 17, 17, 1, 4849, 1970),
- array("Asia/Yerevan", 17, 17, 17, 1, 24764, 1970),
- array("America/Curacao", 17, 17, 17, 1, 1, 1970),
- array("Africa/Luanda", 17, 17, 17, 1, 1, 1970),
- array("Antarctica/McMurdo", 17, 17, 17, 1, 24743, 1970),
- array("Australia/Adelaide", 17, 17, 17, 1, 1, 1971),
- array("Australia/Darwin", 17, 17, 17, 1, 88, 1971),
- array("Australia/Perth", 17, 17, 17, 1, 1, 1971),
- array("America/Aruba", 17, 17, 17, 1, 88, 1971),
- array("Asia/Baku", 17, 17, 17, 1, 1, 1971),
- array("Europe/Sarajevo", 17, 17, 17, 1, 1, 1971),
- array("America/Barbados", 17, 17, 17, 1, 1, 1971),
- array("Asia/Dacca", 17, 17, 17, 1, 1, 1971),
- array("Europe/Brussels", 17, 17, 17, 1, 1, 1971),
- array("Africa/Ouagadougou", 17, 17, 17, 1, 88, 1971),
- array("Europe/Tirane", 17, 17, 17, 1, 4849, 1970),
- array("America/Buenos_Aires", 17, 17, 17, 1, 1734, 1970),
- array("America/Rosario", 17, 17, 17, 1, 1734, 1970),
- array("Europe/Vienna", 17, 17, 17, 1, 3743, 1970),
- array("Asia/Baku", 17, 17, 17, 1, 9490, 1970),
-);
-
-foreach ($tests as $test) {
- putenv("TZ={$test[0]}");
- print "{$test[0]}\n";
- array_shift($test);
- $timestamp = call_user_func_array('mktime', $test);
-
- print "ts = ". date("l Y-m-d H:i:s T", $timestamp). "\n";
- $strtotime_tstamp = strtotime("first monday", $timestamp);
- print "result = ".date("l Y-m-d H:i:s T", $strtotime_tstamp)."\n";
- print "wanted = Monday 00:00:00\n\n";
-}
-?>
---EXPECT--
-Europe/Andorra
-ts = Monday 2037-10-19 17:17:17 CEST
-result = Monday 2037-10-26 00:00:00 CET
-wanted = Monday 00:00:00
-
-Asia/Dubai
-ts = Thursday 1970-01-01 17:17:17 GST
-result = Monday 1970-01-05 00:00:00 GST
-wanted = Monday 00:00:00
-
-Asia/Kabul
-ts = Thursday 1970-01-01 17:17:17 AFT
-result = Monday 1970-01-05 00:00:00 AFT
-wanted = Monday 00:00:00
-
-America/Antigua
-ts = Thursday 1970-01-01 17:17:17 AST
-result = Monday 1970-01-05 00:00:00 AST
-wanted = Monday 00:00:00
-
-America/Anguilla
-ts = Thursday 1970-01-01 17:17:17 AST
-result = Monday 1970-01-05 00:00:00 AST
-wanted = Monday 00:00:00
-
-Europe/Tirane
-ts = Monday 1983-04-11 17:17:17 CET
-result = Monday 1983-04-18 01:00:00 CEST
-wanted = Monday 00:00:00
-
-Asia/Yerevan
-ts = Monday 2037-10-19 17:17:17 AMST
-result = Monday 2037-10-26 00:00:00 AMT
-wanted = Monday 00:00:00
-
-America/Curacao
-ts = Thursday 1970-01-01 17:17:17 AST
-result = Monday 1970-01-05 00:00:00 AST
-wanted = Monday 00:00:00
-
-Africa/Luanda
-ts = Thursday 1970-01-01 17:17:17 WAT
-result = Monday 1970-01-05 00:00:00 WAT
-wanted = Monday 00:00:00
-
-Antarctica/McMurdo
-ts = Monday 2037-09-28 17:17:17 NZST
-result = Monday 2037-10-05 00:00:00 NZDT
-wanted = Monday 00:00:00
-
-Australia/Adelaide
-ts = Friday 1971-01-01 17:17:17 CST
-result = Monday 1971-01-04 00:00:00 CST
-wanted = Monday 00:00:00
-
-Australia/Darwin
-ts = Monday 1971-03-29 17:17:17 CST
-result = Monday 1971-04-05 00:00:00 CST
-wanted = Monday 00:00:00
-
-Australia/Perth
-ts = Friday 1971-01-01 17:17:17 WST
-result = Monday 1971-01-04 00:00:00 WST
-wanted = Monday 00:00:00
-
-America/Aruba
-ts = Monday 1971-03-29 17:17:17 AST
-result = Monday 1971-04-05 00:00:00 AST
-wanted = Monday 00:00:00
-
-Asia/Baku
-ts = Friday 1971-01-01 17:17:17 BAKT
-result = Monday 1971-01-04 00:00:00 BAKT
-wanted = Monday 00:00:00
-
-Europe/Sarajevo
-ts = Friday 1971-01-01 17:17:17 CET
-result = Monday 1971-01-04 00:00:00 CET
-wanted = Monday 00:00:00
-
-America/Barbados
-ts = Friday 1971-01-01 17:17:17 AST
-result = Monday 1971-01-04 00:00:00 AST
-wanted = Monday 00:00:00
-
-Asia/Dacca
-ts = Friday 1971-01-01 17:17:17 DACT
-result = Monday 1971-01-04 00:00:00 DACT
-wanted = Monday 00:00:00
-
-Europe/Brussels
-ts = Friday 1971-01-01 17:17:17 CET
-result = Monday 1971-01-04 00:00:00 CET
-wanted = Monday 00:00:00
-
-Africa/Ouagadougou
-ts = Monday 1971-03-29 17:17:17 GMT
-result = Monday 1971-04-05 00:00:00 GMT
-wanted = Monday 00:00:00
-
-Europe/Tirane
-ts = Monday 1983-04-11 17:17:17 CET
-result = Monday 1983-04-18 01:00:00 CEST
-wanted = Monday 00:00:00
-
-America/Buenos_Aires
-ts = Monday 1974-09-30 17:17:17 ART
-result = Monday 1974-10-07 00:00:00 ART
-wanted = Monday 00:00:00
-
-America/Rosario
-ts = Monday 1974-09-30 17:17:17 ART
-result = Monday 1974-10-07 00:00:00 ART
-wanted = Monday 00:00:00
-
-Europe/Vienna
-ts = Monday 1980-03-31 17:17:17 CET
-result = Monday 1980-04-07 00:00:00 CEST
-wanted = Monday 00:00:00
-
-Asia/Baku
-ts = Monday 1995-12-25 17:17:17 AZT
-result = Monday 1996-01-01 00:00:00 AZT
-wanted = Monday 00:00:00
diff --git a/ext/date/tests/bug21399.phpt b/ext/date/tests/bug21399.phpt
deleted file mode 100644
index 08040bec54..0000000000
--- a/ext/date/tests/bug21399.phpt
+++ /dev/null
@@ -1,9 +0,0 @@
---TEST--
-Bug #21399 (strtotime() request for "YYYYMMDDhhmmss [ZZZ]")
---FILE--
-<?php
- putenv("TZ=GMT");
- echo gmdate("Y-m-d H:i:s", strtotime("20050620091407 GMT"));
-?>
---EXPECT--
-2005-06-20 09:14:07
diff --git a/ext/date/tests/bug21966.phpt b/ext/date/tests/bug21966.phpt
deleted file mode 100644
index 31f592fa98..0000000000
--- a/ext/date/tests/bug21966.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Bug #21966 (date() or mktime() returning bad value for mktime month param of '2')
---FILE--
-<?php
-putenv("TZ=Europe/London");
-
-echo '27/3/04 = ' . strval(mktime(0,0,0,3,27,2004)) . "\n"; // 1080345600
-echo '28/3/04 = ' . strval(mktime(0,0,0,3,28,2004)) . "\n"; // -3662 - should be 108043200
-echo '28/3/04 = ' . strval(mktime(2,0,0,3,28,2004)) . "\n"; // 1080435600
-echo '29/3/04 = ' . strval(mktime(0,0,0,3,29,2004)) . "\n"; // 1080514800
-echo '30/3/04 = ' . strval(mktime(0,0,0,3,30,2004)) . "\n"; // 1080601200
-
-?>
---EXPECT--
-27/3/04 = 1080345600
-28/3/04 = 1080432000
-28/3/04 = 1080435600
-29/3/04 = 1080514800
-30/3/04 = 1080601200
diff --git a/ext/date/tests/bug26090.phpt b/ext/date/tests/bug26090.phpt
deleted file mode 100644
index 03a90352cc..0000000000
--- a/ext/date/tests/bug26090.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Bug #26090 (allow colons in time zone offset to strtotime())
---FILE--
-<?php
-putenv("TZ=America/New_York");
-$t = '2003-10-28 10:20:30-0800';
-echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
-
-$t = '2003-10-28 10:20:30-08:00';
-echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
-?>
---EXPECT--
-2003-10-28 13:20:30 EST
-2003-10-28 13:20:30 EST
diff --git a/ext/date/tests/bug26198.phpt b/ext/date/tests/bug26198.phpt
deleted file mode 100644
index c957bfcf7a..0000000000
--- a/ext/date/tests/bug26198.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #26198 (strtotime handling of "M Y" and "Y M" format)
---FILE--
-<?php
- date_default_timezone_set("GMT");
- echo gmdate("F Y (Y-m-d H:i:s T)\n", strtotime("Oct 2001"));
- echo gmdate("M Y (Y-m-d H:i:s T)\n", strtotime("2001 Oct"));
-?>
---EXPECT--
-October 2001 (2001-10-01 00:00:00 GMT)
-Oct 2001 (2001-10-01 00:00:00 GMT)
diff --git a/ext/date/tests/bug26317.phpt b/ext/date/tests/bug26317.phpt
deleted file mode 100644
index aef29035e2..0000000000
--- a/ext/date/tests/bug26317.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-Bug #26317 (military timezone offset signedness)
---SKIPIF--
-if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
- die("skip unable to change TZ enviroment variable\n");
-}
---FILE--
-<?php
- putenv("TZ=GMT0");
- echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 16:20:42 Z"));
- echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T"));
- echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
-?>
---EXPECT--
-2003-11-19 16:20:42
-2003-11-19 16:20:42
-2003-11-19 16:20:42
diff --git a/ext/date/tests/bug26320.phpt b/ext/date/tests/bug26320.phpt
deleted file mode 100644
index 5b237cadbf..0000000000
--- a/ext/date/tests/bug26320.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Bug #26320 (strtotime handling of XML Schema/ISO 8601 format)
---SKIPIF--
-if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
- die("skip unable to change TZ enviroment variable\n");
-}
---FILE--
-<?php
- putenv("TZ=GMT0");
- echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42"));
- echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42Z"));
-?>
---EXPECT--
-2003-11-19 12:30:42
-2003-11-19 12:30:42
diff --git a/ext/date/tests/bug26694.phpt b/ext/date/tests/bug26694.phpt
deleted file mode 100644
index a709d1666c..0000000000
--- a/ext/date/tests/bug26694.phpt
+++ /dev/null
@@ -1,9 +0,0 @@
---TEST--
-Bug #26694 (strtotime() request for "Sun, 21 Dec 2003 20:38:33 +0000 GMT")
---FILE--
-<?php
- putenv("TZ=GMT");
- echo gmdate("Y-m-d H:i:s", strtotime("Sun, 21 Dec 2003 20:38:33 +0000 GMT"));
-?>
---EXPECT--
-2003-12-21 20:38:33
diff --git a/ext/date/tests/bug27719.phpt b/ext/date/tests/bug27719.phpt
deleted file mode 100644
index 6f65bfb85e..0000000000
--- a/ext/date/tests/bug27719.phpt
+++ /dev/null
@@ -1,67 +0,0 @@
---TEST--
-Bug #27719 (mktime returns incorrect timestamp for dst days)
---INI--
-error_reporting=2047
---FILE--
-<?php /* $Id$ */
- putenv("TZ=EST"); // No DST
- $a = mktime(0, 0, 0, 4, 4, 2004, 0);
- $b = mktime(0, 0, 0, 4, 4, 2004, 1);
- $c = mktime(0, 0, 0, 4, 4, 2004, -1);
- echo "$a ".date("m/d/y h:i:s\n",$a);
- echo "$b ".date("m/d/y h:i:s\n",$b);
- echo "$c ".date("m/d/y h:i:s\n",$c);
- echo "\n";
- putenv("TZ=EST5EDT"); // DST not in effect
- $a = mktime(0, 0, 0, 2, 4, 2004, 0);
- $b = mktime(0, 0, 0, 2, 4, 2004, 1);
- $c = mktime(0, 0, 0, 2, 4, 2004, -1);
- echo "$a ".date("m/d/y h:i:s\n",$a);
- echo "$b ".date("m/d/y h:i:s\n",$b);
- echo "$c ".date("m/d/y h:i:s\n",$c);
- echo "\n";
- putenv("TZ=EST5EDT"); // Just before DST changeover
- $a = mktime(0, 0, 0, 4, 4, 2004, 0);
- $b = mktime(0, 0, 0, 4, 4, 2004, 1);
- $c = mktime(0, 0, 0, 4, 4, 2004, -1);
- echo "$a ".date("m/d/y h:i:s\n",$a);
- echo "$b ".date("m/d/y h:i:s\n",$b);
- echo "$c ".date("m/d/y h:i:s\n",$c);
- echo "\n";
- putenv("TZ=EST5EDT"); // Just after DST changeover
- $a = mktime(3, 0, 0, 4, 4, 2004, 0);
- $b = mktime(3, 0, 0, 4, 4, 2004, 1);
- $c = mktime(3, 0, 0, 4, 4, 2004, -1);
- echo "$a ".date("m/d/y h:i:s\n",$a);
- echo "$b ".date("m/d/y h:i:s\n",$b);
- echo "$c ".date("m/d/y h:i:s\n",$c);
- echo "\n";
- putenv("TZ=EST5EDT"); // DST in effect
- $a = mktime(0, 0, 0, 6, 4, 2004, 0);
- $b = mktime(0, 0, 0, 6, 4, 2004, 1);
- $c = mktime(0, 0, 0, 6, 4, 2004, -1);
- echo "$a ".date("m/d/y h:i:s\n",$a);
- echo "$b ".date("m/d/y h:i:s\n",$b);
- echo "$c ".date("m/d/y h:i:s\n",$c);
- echo "\n";
-?>
---EXPECTF--
-1081054800 04/04/04 12:00:00
-%s
-1081054800 04/04/04 12:00:00
-
-1075870800 02/04/04 12:00:00
-1075867200 02/03/04 11:00:00
-1075870800 02/04/04 12:00:00
-
-1081054800 04/04/04 12:00:00
-1081051200 04/03/04 11:00:00
-1081054800 04/04/04 12:00:00
-
-1081065600 04/04/04 04:00:00
-1081062000 04/04/04 03:00:00
-1081062000 04/04/04 03:00:00
-
-1086325200 06/04/04 01:00:00
-1086321600 06/04/04 12:00:00
-1086321600 06/04/04 12:00:00
diff --git a/ext/date/tests/bug27780.phpt b/ext/date/tests/bug27780.phpt
deleted file mode 100644
index f1e6eb67bd..0000000000
--- a/ext/date/tests/bug27780.phpt
+++ /dev/null
@@ -1,113 +0,0 @@
---TEST--
-Bug #27780 (strtotime(+1 xxx) returns a wrong date/time)
---FILE--
-<?php
-$timezones = array (
- "America/Chicago", "Europe/Amsterdam", "Asia/Jerusalem",
- "Asia/Singapore", "America/Sao_Paulo"
-);
-
-$timestrings = array (
- "2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds",
- "2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds",
- "2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds",
- "2004-04-07 00:00:00 -21 days",
- "2004-04-07 00:00:00 11 days ago",
- "2004-04-07 00:00:00 -10 day +2 hours",
- "2004-04-07 00:00:00 -1 day",
- "2004-04-07 00:00:00",
- "2004-04-07 00:00:00 +1 hour",
- "2004-04-07 00:00:00 +2 hour",
- "2004-04-07 00:00:00 +1 day",
- "2004-04-07 00:00:00 1 day",
- "2004-04-07 00:00:00 +21 days",
-);
-
-foreach ($timezones as $timezone) {
- putenv("TZ=$timezone");
- echo $timezone, "\n";
-
- foreach ($timestrings as $timestring) {
- $time = strtotime($timestring);
-
- echo $time, strftime(" [%Y-%m-%d %H:%M:%S %Z]", $time), " [$timestring]\n";
- }
-
- echo "\n";
-}
-?>
---EXPECT--
-America/Chicago
-1076824799 [2004-02-14 23:59:59 CST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
-1076824800 [2004-02-15 00:00:00 CST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
-1076824801 [2004-02-15 00:00:01 CST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
-1079503200 [2004-03-17 00:00:00 CST] [2004-04-07 00:00:00 -21 days]
-1080367200 [2004-03-27 00:00:00 CST] [2004-04-07 00:00:00 11 days ago]
-1080460800 [2004-03-28 02:00:00 CST] [2004-04-07 00:00:00 -10 day +2 hours]
-1081227600 [2004-04-06 00:00:00 CDT] [2004-04-07 00:00:00 -1 day]
-1081314000 [2004-04-07 00:00:00 CDT] [2004-04-07 00:00:00]
-1081317600 [2004-04-07 01:00:00 CDT] [2004-04-07 00:00:00 +1 hour]
-1081321200 [2004-04-07 02:00:00 CDT] [2004-04-07 00:00:00 +2 hour]
-1081400400 [2004-04-08 00:00:00 CDT] [2004-04-07 00:00:00 +1 day]
-1081400400 [2004-04-08 00:00:00 CDT] [2004-04-07 00:00:00 1 day]
-1083128400 [2004-04-28 00:00:00 CDT] [2004-04-07 00:00:00 +21 days]
-
-Europe/Amsterdam
-1076799599 [2004-02-14 23:59:59 CET] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
-1076799600 [2004-02-15 00:00:00 CET] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
-1076799601 [2004-02-15 00:00:01 CET] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
-1079478000 [2004-03-17 00:00:00 CET] [2004-04-07 00:00:00 -21 days]
-1080342000 [2004-03-27 00:00:00 CET] [2004-04-07 00:00:00 11 days ago]
-1080435600 [2004-03-28 03:00:00 CEST] [2004-04-07 00:00:00 -10 day +2 hours]
-1081202400 [2004-04-06 00:00:00 CEST] [2004-04-07 00:00:00 -1 day]
-1081288800 [2004-04-07 00:00:00 CEST] [2004-04-07 00:00:00]
-1081292400 [2004-04-07 01:00:00 CEST] [2004-04-07 00:00:00 +1 hour]
-1081296000 [2004-04-07 02:00:00 CEST] [2004-04-07 00:00:00 +2 hour]
-1081375200 [2004-04-08 00:00:00 CEST] [2004-04-07 00:00:00 +1 day]
-1081375200 [2004-04-08 00:00:00 CEST] [2004-04-07 00:00:00 1 day]
-1083103200 [2004-04-28 00:00:00 CEST] [2004-04-07 00:00:00 +21 days]
-
-Asia/Jerusalem
-1076795999 [2004-02-14 23:59:59 IST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
-1076796000 [2004-02-15 00:00:00 IST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
-1076796001 [2004-02-15 00:00:01 IST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
-1079474400 [2004-03-17 00:00:00 IST] [2004-04-07 00:00:00 -21 days]
-1080338400 [2004-03-27 00:00:00 IST] [2004-04-07 00:00:00 11 days ago]
-1080432000 [2004-03-28 02:00:00 IST] [2004-04-07 00:00:00 -10 day +2 hours]
-1081202400 [2004-04-06 00:00:00 IST] [2004-04-07 00:00:00 -1 day]
-1081288800 [2004-04-07 00:00:00 IST] [2004-04-07 00:00:00]
-1081292400 [2004-04-07 02:00:00 IDT] [2004-04-07 00:00:00 +1 hour]
-1081292400 [2004-04-07 02:00:00 IDT] [2004-04-07 00:00:00 +2 hour]
-1081371600 [2004-04-08 00:00:00 IDT] [2004-04-07 00:00:00 +1 day]
-1081371600 [2004-04-08 00:00:00 IDT] [2004-04-07 00:00:00 1 day]
-1083099600 [2004-04-28 00:00:00 IDT] [2004-04-07 00:00:00 +21 days]
-
-Asia/Singapore
-1076774399 [2004-02-14 23:59:59 SGT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
-1076774400 [2004-02-15 00:00:00 SGT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
-1076774401 [2004-02-15 00:00:01 SGT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
-1079452800 [2004-03-17 00:00:00 SGT] [2004-04-07 00:00:00 -21 days]
-1080316800 [2004-03-27 00:00:00 SGT] [2004-04-07 00:00:00 11 days ago]
-1080410400 [2004-03-28 02:00:00 SGT] [2004-04-07 00:00:00 -10 day +2 hours]
-1081180800 [2004-04-06 00:00:00 SGT] [2004-04-07 00:00:00 -1 day]
-1081267200 [2004-04-07 00:00:00 SGT] [2004-04-07 00:00:00]
-1081270800 [2004-04-07 01:00:00 SGT] [2004-04-07 00:00:00 +1 hour]
-1081274400 [2004-04-07 02:00:00 SGT] [2004-04-07 00:00:00 +2 hour]
-1081353600 [2004-04-08 00:00:00 SGT] [2004-04-07 00:00:00 +1 day]
-1081353600 [2004-04-08 00:00:00 SGT] [2004-04-07 00:00:00 1 day]
-1083081600 [2004-04-28 00:00:00 SGT] [2004-04-07 00:00:00 +21 days]
-
-America/Sao_Paulo
-1076810399 [2004-02-14 23:59:59 BRST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
-1076814000 [2004-02-15 00:00:00 BRT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
-1076814001 [2004-02-15 00:00:01 BRT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
-1079492400 [2004-03-17 00:00:00 BRT] [2004-04-07 00:00:00 -21 days]
-1080356400 [2004-03-27 00:00:00 BRT] [2004-04-07 00:00:00 11 days ago]
-1080450000 [2004-03-28 02:00:00 BRT] [2004-04-07 00:00:00 -10 day +2 hours]
-1081220400 [2004-04-06 00:00:00 BRT] [2004-04-07 00:00:00 -1 day]
-1081306800 [2004-04-07 00:00:00 BRT] [2004-04-07 00:00:00]
-1081310400 [2004-04-07 01:00:00 BRT] [2004-04-07 00:00:00 +1 hour]
-1081314000 [2004-04-07 02:00:00 BRT] [2004-04-07 00:00:00 +2 hour]
-1081393200 [2004-04-08 00:00:00 BRT] [2004-04-07 00:00:00 +1 day]
-1081393200 [2004-04-08 00:00:00 BRT] [2004-04-07 00:00:00 1 day]
-1083121200 [2004-04-28 00:00:00 BRT] [2004-04-07 00:00:00 +21 days]
diff --git a/ext/date/tests/bug28024.phpt b/ext/date/tests/bug28024.phpt
deleted file mode 100644
index 3e0399adbe..0000000000
--- a/ext/date/tests/bug28024.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #28024 (Changed behavior of strtotime())
---FILE--
-<?php
- putenv("TZ=Europe/Berlin");
- echo strtotime("17:00 2004-01-01"), "\n";
- echo date("Y-m-d H:i:s T", strtotime("17:00 2004-01-01"));
-?>
---EXPECT--
-1072972800
-2004-01-01 17:00:00 CET
diff --git a/ext/date/tests/bug28088.phpt b/ext/date/tests/bug28088.phpt
deleted file mode 100644
index 95866e00be..0000000000
--- a/ext/date/tests/bug28088.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-Bug #28088 (strtotime() cannot convert 00 hours")
---FILE--
-<?php
-putenv("TZ=GMT");
-
-echo "The following line rightly shows the correct date time:\n";
-echo gmdate("m/d/y Hi", strtotime("04/04/04 2345")), "\n";
-
-echo "But the following line fails to show the correct date time:\n";
-echo gmdate("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n";
-?>
---EXPECT--
-The following line rightly shows the correct date time:
-04/04/04 2345
-But the following line fails to show the correct date time:
-04/04/04 0045
diff --git a/ext/date/tests/bug28599.phpt b/ext/date/tests/bug28599.phpt
deleted file mode 100644
index fcd17b4697..0000000000
--- a/ext/date/tests/bug28599.phpt
+++ /dev/null
@@ -1,9 +0,0 @@
---TEST--
-Bug #28599 (strtotime fails with zero base time)
---FILE--
-<?php
-date_default_timezone_set("Europe/Amsterdam");
-print gmdate("d-m-Y H:i:s", strtotime("+30 minutes", 1100535573));
-?>
---EXPECT--
-15-11-2004 16:49:33
diff --git a/ext/date/tests/bug29150.phpt b/ext/date/tests/bug29150.phpt
deleted file mode 100644
index 274584d050..0000000000
--- a/ext/date/tests/bug29150.phpt
+++ /dev/null
@@ -1,9 +0,0 @@
---TEST--
-Bug #29150 (Roman number format for months)
---FILE--
-<?php
- putenv("TZ=GMT");
- echo gmdate("Y-m-d H:i:s", strtotime("20 VI. 2005"));
-?>
---EXPECT--
-2005-06-20 00:00:00
diff --git a/ext/date/tests/bug29585.phpt b/ext/date/tests/bug29585.phpt
deleted file mode 100644
index 3945699246..0000000000
--- a/ext/date/tests/bug29585.phpt
+++ /dev/null
@@ -1,9 +0,0 @@
---TEST--
-Bug #29585 (Support week numbers in strtotime())
---FILE--
-<?php
-date_default_timezone_set("GMT");
-echo gmdate("Y-m-d H:i:s", strtotime("2004W30"));
-?>
---EXPECT--
-2004-07-19 00:00:00
diff --git a/ext/date/tests/bug29595.phpt b/ext/date/tests/bug29595.phpt
deleted file mode 100644
index 285ade140b..0000000000
--- a/ext/date/tests/bug29595.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #29595 (Roman number format for months)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-$from_postgres = '2004-08-09 14:48:27.304809+10';
-
-echo strtotime($from_postgres);
-?>
---EXPECT--
-1092026907
diff --git a/ext/date/tests/bug30096.phpt b/ext/date/tests/bug30096.phpt
deleted file mode 100644
index fa4f716ee6..0000000000
--- a/ext/date/tests/bug30096.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Bug #30096 (gmmktime does not return the corrent time)
---INI--
-error_reporting=2047
---FILE--
-<?php
-echo "no dst --> dst\n";
-$ts = -1;
-gm_date_check(01,00,00,03,27,2005);
-gm_date_check(02,00,00,03,27,2005);
-gm_date_check(03,00,00,03,27,2005);
-gm_date_check(04,00,00,03,27,2005);
-
-echo "\ndst --> no dst\n";
-$ts = -1;
-gm_date_check(01,00,00,10,30,2005);
-gm_date_check(02,00,00,10,30,2005);
-gm_date_check(03,00,00,10,30,2005);
-gm_date_check(04,00,00,10,30,2005);
-
-function gm_date_check($hour, $minute, $second, $month, $day, $year) {
- global $ts, $tsold;
-
- echo "gmmktime($hour,$minute,$second,$month,$day,$year): ";
-
- $tsold = $ts;
- $ts = gmmktime($hour, $minute, $second, $month, $day, $year);
-
- echo $ts, " | gmdate('r', $ts):", gmdate('r', $ts);
- if ($tsold > 0) {
- echo " | Diff: " . ($ts - $tsold);
- }
- echo "\n";
-}
-
-?>
---EXPECT--
-no dst --> dst
-gmmktime(1,0,0,3,27,2005): 1111885200 | gmdate('r', 1111885200):Sun, 27 Mar 2005 01:00:00 +0000
-gmmktime(2,0,0,3,27,2005): 1111888800 | gmdate('r', 1111888800):Sun, 27 Mar 2005 02:00:00 +0000 | Diff: 3600
-gmmktime(3,0,0,3,27,2005): 1111892400 | gmdate('r', 1111892400):Sun, 27 Mar 2005 03:00:00 +0000 | Diff: 3600
-gmmktime(4,0,0,3,27,2005): 1111896000 | gmdate('r', 1111896000):Sun, 27 Mar 2005 04:00:00 +0000 | Diff: 3600
-
-dst --> no dst
-gmmktime(1,0,0,10,30,2005): 1130634000 | gmdate('r', 1130634000):Sun, 30 Oct 2005 01:00:00 +0000
-gmmktime(2,0,0,10,30,2005): 1130637600 | gmdate('r', 1130637600):Sun, 30 Oct 2005 02:00:00 +0000 | Diff: 3600
-gmmktime(3,0,0,10,30,2005): 1130641200 | gmdate('r', 1130641200):Sun, 30 Oct 2005 03:00:00 +0000 | Diff: 3600
-gmmktime(4,0,0,10,30,2005): 1130644800 | gmdate('r', 1130644800):Sun, 30 Oct 2005 04:00:00 +0000 | Diff: 3600
diff --git a/ext/date/tests/bug30532.phpt b/ext/date/tests/bug30532.phpt
deleted file mode 100644
index faee0b316f..0000000000
--- a/ext/date/tests/bug30532.phpt
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-Bug #30532 (strtotime - crossing daylight savings time)
---FILE--
-<?php
-putenv("TZ=America/New_York");
-echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n";
-echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n";
-echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n";
-
-echo "\n";
-
-echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n";
-echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n";
-echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
-?>
---EXPECT--
-2004-10-31 01:00:00 EDT
-2004-10-31 01:00:00 EST
-2004-10-31 02:00:00 EST
-
-2004-10-31 01:00:00 EDT
-2004-10-31 02:00:00 EST
-2004-10-31 03:00:00 EST
diff --git a/ext/date/tests/bug32086.phpt b/ext/date/tests/bug32086.phpt
deleted file mode 100644
index 2799164cb1..0000000000
--- a/ext/date/tests/bug32086.phpt
+++ /dev/null
@@ -1,49 +0,0 @@
---TEST--
-Bug #32086 (strtotime don't work in DST)
---FILE--
-<?php
-putenv("TZ=America/Sao_Paulo");
-echo $g = strtotime("2004-11-01"), "\n";
-echo $i = strtotime("2004-11-01 +1 day"), "\n";
-echo $j = strtotime("+1 day", $g), "\n";
-echo $k = strtotime("2004-11-02"), "\n";
-echo $l = strtotime("2004-11-03"), "\n";
-echo date("Y-m-d H:i:s T\n", $g);
-echo date("Y-m-d H:i:s T\n", $i);
-echo date("Y-m-d H:i:s T\n", $j);
-echo date("Y-m-d H:i:s T\n", $k);
-echo date("Y-m-d H:i:s T\n", $l);
-
-echo $g = strtotime("2005-02-19"), "\n";
-echo $i = strtotime("2005-02-19 +1 day"), "\n";
-echo $j = strtotime("+1 day", $g), "\n";
-echo $k = strtotime("2005-02-20"), "\n";
-echo $l = strtotime("2005-02-21"), "\n";
-echo date("Y-m-d H:i:s T\n", $g);
-echo date("Y-m-d H:i:s T\n", $i);
-echo date("Y-m-d H:i:s T\n", $j);
-echo date("Y-m-d H:i:s T\n", $k);
-echo date("Y-m-d H:i:s T\n", $l);
-
-?>
---EXPECT--
-1099278000
-1099364400
-1099364400
-1099364400
-1099447200
-2004-11-01 00:00:00 BRT
-2004-11-02 01:00:00 BRST
-2004-11-02 01:00:00 BRST
-2004-11-02 01:00:00 BRST
-2004-11-03 00:00:00 BRST
-1108778400
-1108868400
-1108868400
-1108868400
-1108954800
-2005-02-19 00:00:00 BRST
-2005-02-20 00:00:00 BRT
-2005-02-20 00:00:00 BRT
-2005-02-20 00:00:00 BRT
-2005-02-21 00:00:00 BRT
diff --git a/ext/date/tests/bug32270.phpt b/ext/date/tests/bug32270.phpt
deleted file mode 100644
index 2c5ff47549..0000000000
--- a/ext/date/tests/bug32270.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-Bug #32270 (strtotime/date behavior)
---FILE--
-<?php
-putenv("TZ=America/Los_Angeles");
-
-echo date("m/d/Y H:i:s T", -2145888000)."\n";
-
-echo strtotime("Jan 1 1902")."\n";
-
-echo date("m/d/Y H:i:s T", -631123200)."\n";
-
-echo strtotime("Jan 1 1950")."\n";
-
-echo date("m/d/Y H:i:s T", 946713600)."\n";
-
-echo strtotime("Jan 1 2000")."\n";
-?>
---EXPECT--
-01/01/1902 00:00:00 PST
--2145888000
-01/01/1950 00:00:00 PST
--631123200
-01/01/2000 00:00:00 PST
-946713600
diff --git a/ext/date/tests/bug32555.phpt b/ext/date/tests/bug32555.phpt
deleted file mode 100644
index 3ef513b5e9..0000000000
--- a/ext/date/tests/bug32555.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-Bug #32555 (strtotime("tomorrow") can return false)
---FILE--
-<?php
-putenv("TZ=US/Eastern");
-
-$stamp = 1112427000;
-print strftime('%c %Z',strtotime('now',$stamp)) ."\n";
-print strftime('%c %Z',strtotime('tomorrow',$stamp)) ."\n";
-print strftime('%c %Z',strtotime('+1 day',$stamp)) ."\n";
-print strftime('%c %Z',strtotime('+2 day',$stamp)) ."\n";
-?>
---EXPECT--
-Sat Apr 2 02:30:00 2005 EST
-Sun Apr 3 00:00:00 2005 EST
-Sun Apr 3 03:30:00 2005 EDT
-Mon Apr 4 02:30:00 2005 EDT
diff --git a/ext/date/tests/bug32588.phpt b/ext/date/tests/bug32588.phpt
deleted file mode 100644
index 6cf5ac92f8..0000000000
--- a/ext/date/tests/bug32588.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Bug #32588 (strtotime() error for 'last xxx' DST problem)
---FILE--
-<?php
-putenv("TZ=America/New_York");
-
-echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n";
-echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n";
-echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
---EXPECT--
-Sat 2005/04/02/00:00:00
-Sun 2005/04/03/00:00:00
-Mon 2005/04/04/00:00:00
diff --git a/ext/date/tests/bug33056.phpt b/ext/date/tests/bug33056.phpt
deleted file mode 100644
index 441acc5712..0000000000
--- a/ext/date/tests/bug33056.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Bug #33056 (strtotime() does not parse 20050518t090000Z)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-echo strtotime('20050518t090000Z')."\n";
-echo strtotime('20050518t091234Z')."\n";
-echo strtotime('20050518t191234Z')."\n";
-?>
---EXPECT--
-1116406800
-1116407554
-1116443554
diff --git a/ext/date/tests/bug33414-1.phpt b/ext/date/tests/bug33414-1.phpt
deleted file mode 100644
index 7b15228cf3..0000000000
--- a/ext/date/tests/bug33414-1.phpt
+++ /dev/null
@@ -1,320 +0,0 @@
---TEST--
-Bug #33414 [1] (Comprehensive list of incorrect days returned after strotime() / date() tests)
---FILE--
-<?php
-
-print "TZ=America/Mendoza - wrong day.\n";
-putenv("TZ=America/Mendoza");
-$tStamp = mktime (17, 17, 17, 1, 8327, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-
-print "TZ=America/Catamarca - wrong day.\n";
-putenv("TZ=America/Catamarca");
-$tStamp = mktime (17, 17, 17, 1, 7599, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-
-print "TZ=America/Cordoba - wrong day.\n";
-putenv("TZ=America/Cordoba");
-$tStamp = mktime (17, 17, 17, 1, 7599, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-
-print "TZ=America/Rosario - wrong day.\n";
-putenv("TZ=America/Rosario");
-$tStamp = mktime (17, 17, 17, 1, 7958, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=Europe/Vienna - wrong day - giving unexpected results, at
-least on my system :-)\n";
-putenv("TZ=Europe/Vienna");
-$tStamp = mktime (17, 17, 17, 1, 3746, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=Asia/Baku - wrong day.\n";
-putenv("TZ=Asia/Baku");
-$tStamp = mktime (17, 17, 17, 1, 8299, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-
-print "TZ=America/Noronha - wrong day.\n";
-putenv("TZ=America/Noronha");
-$tStamp = mktime (17, 17, 17, 1, 10866, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Friday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Friday 00:00:00\n\n";
-
-print "TZ=America/Havana - wrong day.\n";
-putenv("TZ=America/Havana");
-$tStamp = mktime (17, 17, 17, 1, 12720, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=Europe/Tallinn - wrong day.\n";
-putenv("TZ=Europe/Tallinn");
-$tStamp = mktime (17, 17, 17, 1, 11777, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Saturday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Saturday 00:00:00\n\n";
-
-print "TZ=Asia/Jerusalem - wrong day.\n";
-putenv("TZ=Asia/Jerusalem");
-$tStamp = mktime (17, 17, 17, 1, 13056, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=Europe/Vilnius - wrong day.\n";
-putenv("TZ=Europe/Vilnius");
-$tStamp = mktime (17, 17, 17, 1, 12140, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Friday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Friday 00:00:00\n\n";
-
-print "TZ=Pacific/Kwajalein - wrong day.\n";
-putenv("TZ=Pacific/Kwajalein");
-$tStamp = mktime (17, 17, 17, 1, 8626, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Friday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Friday 00:00:00\n\n";
-
-print "TZ=Asia/Ulan_Bator - wrong day.\n";
-putenv("TZ=Asia/Ulan_Bator");
-$tStamp = mktime (17, 17, 17, 1, 11588, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Saturday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Saturday 00:00:00\n\n";
-
-print "TZ=America/Cancun - wrong day.\n";
-putenv("TZ=America/Cancun");
-$tStamp = mktime (17, 17, 17, 1, 11785, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-
-print "TZ=America/Mexico_City - wrong day.\n";
-putenv("TZ=America/Mexico_City");
-$tStamp = mktime (17, 17, 17, 1, 11781, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Wednesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Wednesday 00:00:00\n\n";
-
-print "TZ=America/Mazatlan - wrong day.\n";
-putenv("TZ=America/Mazatlan");
-$tStamp = mktime (17, 17, 17, 1, 11780, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=America/Chihuahua - wrong day.\n";
-putenv("TZ=America/Chihuahua");
-$tStamp = mktime (17, 17, 17, 1, 11782, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=Asia/Kuala_Lumpur - wrong day.\n";
-putenv("TZ=Asia/Kuala_Lumpur");
-$tStamp = mktime (17, 17, 17, 1, 4380, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=Pacific/Chatham - wrong day.\n";
-putenv("TZ=Pacific/Chatham");
-$tStamp = mktime (17, 17, 17, 1, 1762, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=America/Lima - wrong day.\n";
-putenv("TZ=America/Lima");
-$tStamp = mktime (17, 17, 17, 1, 5839, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=Asia/Karachi - wrong day.\n";
-putenv("TZ=Asia/Karachi");
-$tStamp = mktime (17, 17, 17, 1, 11783, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Friday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Friday 00:00:00\n\n";
-
-print "TZ=America/Asuncion - wrong day.\n";
-putenv("TZ=America/Asuncion");
-$tStamp = mktime (17, 17, 17, 1, 11746, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Wednesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Wednesday 00:00:00\n\n";
-
-print "TZ=Asia/Singapore - wrong day.\n";
-putenv("TZ=Asia/Singapore");
-$tStamp = mktime (17, 17, 17, 1, 4383, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=America/Montevideo - wrong day.\n";
-putenv("TZ=America/Montevideo");
-$tStamp = mktime (17, 17, 17, 1, 12678, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-?>
---EXPECT--
-TZ=America/Mendoza - wrong day.
-tStamp=Sunday 1992-10-18 17:17:17 ARST 1
-result=Sunday 1992-10-25 00:00:00 ARST 1
-wanted=Sunday 00:00:00
-
-TZ=America/Catamarca - wrong day.
-tStamp=Sunday 1990-10-21 17:17:17 ARST 1
-result=Sunday 1990-10-28 00:00:00 ARST 1
-wanted=Sunday 00:00:00
-
-TZ=America/Cordoba - wrong day.
-tStamp=Sunday 1990-10-21 17:17:17 ARST 1
-result=Sunday 1990-10-28 00:00:00 ARST 1
-wanted=Sunday 00:00:00
-
-TZ=America/Rosario - wrong day.
-tStamp=Tuesday 1991-10-15 17:17:17 WART 0
-result=Tuesday 1991-10-22 00:00:00 ARST 1
-wanted=Tuesday 00:00:00
-
-TZ=Europe/Vienna - wrong day - giving unexpected results, at
-least on my system :-)
-tStamp=Thursday 1980-04-03 17:17:17 CET 0
-result=Thursday 1980-04-10 00:00:00 CEST 1
-wanted=Thursday 00:00:00
-
-TZ=Asia/Baku - wrong day.
-tStamp=Sunday 1992-09-20 17:17:17 AZST 1
-result=Sunday 1992-09-27 00:00:00 AZT 0
-wanted=Sunday 00:00:00
-
-TZ=America/Noronha - wrong day.
-tStamp=Friday 1999-10-01 17:17:17 FNT 0
-result=Friday 1999-10-08 00:00:00 FNST 1
-wanted=Friday 00:00:00
-
-TZ=America/Havana - wrong day.
-tStamp=Thursday 2004-10-28 17:17:17 CDT 1
-result=Thursday 2004-11-04 00:00:00 CDT 1
-wanted=Thursday 00:00:00
-
-TZ=Europe/Tallinn - wrong day.
-tStamp=Saturday 2002-03-30 17:17:17 EET 0
-result=Saturday 2002-04-06 00:00:00 EEST 1
-wanted=Saturday 00:00:00
-
-TZ=Asia/Jerusalem - wrong day.
-tStamp=Thursday 2005-09-29 17:17:17 IDT 1
-result=Thursday 2005-10-06 00:00:00 IDT 1
-wanted=Thursday 00:00:00
-
-TZ=Europe/Vilnius - wrong day.
-tStamp=Friday 2003-03-28 17:17:17 EET 0
-result=Friday 2003-04-04 00:00:00 EEST 1
-wanted=Friday 00:00:00
-
-TZ=Pacific/Kwajalein - wrong day.
-tStamp=Friday 1993-08-13 17:17:17 KWAT 0
-result=Saturday 1993-08-21 00:00:00 MHT 0
-wanted=Friday 00:00:00
-
-TZ=Asia/Ulan_Bator - wrong day.
-tStamp=Saturday 2001-09-22 17:17:17 ULAST 1
-result=Saturday 2001-09-29 00:00:00 ULAST 1
-wanted=Saturday 00:00:00
-
-TZ=America/Cancun - wrong day.
-tStamp=Sunday 2002-04-07 17:17:17 CDT 1
-result=Sunday 2002-04-14 00:00:00 CDT 1
-wanted=Sunday 00:00:00
-
-TZ=America/Mexico_City - wrong day.
-tStamp=Wednesday 2002-04-03 17:17:17 CST 0
-result=Wednesday 2002-04-10 00:00:00 CDT 1
-wanted=Wednesday 00:00:00
-
-TZ=America/Mazatlan - wrong day.
-tStamp=Tuesday 2002-04-02 17:17:17 MST 0
-result=Tuesday 2002-04-09 00:00:00 MDT 1
-wanted=Tuesday 00:00:00
-
-TZ=America/Chihuahua - wrong day.
-tStamp=Thursday 2002-04-04 17:17:17 MST 0
-result=Thursday 2002-04-11 00:00:00 MDT 1
-wanted=Thursday 00:00:00
-
-TZ=Asia/Kuala_Lumpur - wrong day.
-tStamp=Monday 1981-12-28 17:17:17 MALT 0
-result=Monday 1982-01-04 00:00:00 MYT 0
-wanted=Monday 00:00:00
-
-TZ=Pacific/Chatham - wrong day.
-tStamp=Monday 1974-10-28 17:17:17 CHAST 0
-result=Monday 1974-11-04 00:00:00 CHADT 1
-wanted=Monday 00:00:00
-
-TZ=America/Lima - wrong day.
-tStamp=Thursday 1985-12-26 17:17:17 PET 0
-result=Thursday 1986-01-02 00:00:00 PEST 1
-wanted=Thursday 00:00:00
-
-TZ=Asia/Karachi - wrong day.
-tStamp=Friday 2002-04-05 17:17:17 PKT 0
-result=Friday 2002-04-12 00:00:00 PKST 1
-wanted=Friday 00:00:00
-
-TZ=America/Asuncion - wrong day.
-tStamp=Wednesday 2002-02-27 17:17:17 PYST 1
-result=Wednesday 2002-03-06 00:00:00 PYST 1
-wanted=Wednesday 00:00:00
-
-TZ=Asia/Singapore - wrong day.
-tStamp=Thursday 1981-12-31 17:17:17 SGT 0
-result=Thursday 1982-01-07 00:00:00 SGT 0
-wanted=Thursday 00:00:00
-
-TZ=America/Montevideo - wrong day.
-tStamp=Thursday 2004-09-16 17:17:17 UYT 0
-result=Thursday 2004-09-23 00:00:00 UYST 1
-wanted=Thursday 00:00:00
diff --git a/ext/date/tests/bug33414-2.phpt b/ext/date/tests/bug33414-2.phpt
deleted file mode 100644
index 8eb2a35697..0000000000
--- a/ext/date/tests/bug33414-2.phpt
+++ /dev/null
@@ -1,121 +0,0 @@
---TEST--
-Bug #33414 [2] (Comprehensive list of incorrect days returned after strotime() / date() tests)
---FILE--
-<?php
-print "TZ=Pacific/Rarotonga - wrong day.\n";
-putenv("TZ=Pacific/Rarotonga");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=Atlantic/South_Georgia - wrong day.\n";
-putenv("TZ=Atlantic/South_Georgia");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=America/Port-au-Prince - wrong day.\n";
-putenv("TZ=America/Port-au-Prince");
-$tStamp = mktime (17, 17, 17, 1, 12871, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=Pacific/Enderbury - wrong day, off by 2 days.\n";
-putenv("TZ=Pacific/Enderbury");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=Pacific/Kiritimati - wrong day, off by 2 days.\n";
-putenv("TZ=Pacific/Kiritimati");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=America/Managua - wrong day.\n";
-putenv("TZ=America/Managua");
-$tStamp = mktime (17, 17, 17, 1, 12879, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=Pacific/Pitcairn - wrong day.\n";
-putenv("TZ=Pacific/Pitcairn");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Wednesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Wednesday 00:00:00\n\n";
-
-print "TZ=Pacific/Fakaofo - wrong day.\n";
-putenv("TZ=Pacific/Fakaofo");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Saturday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Saturday 00:00:00\n\n";
-
-print "TZ=Pacific/Johnston - wrong day.\n";
-putenv("TZ=Pacific/Johnston");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Friday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Friday 00:00:00\n\n";
-?>
---EXPECT--
-TZ=Pacific/Rarotonga - wrong day.
-tStamp=Thursday 1970-01-01 17:17:17 CKT 0
-result=Tuesday 1970-01-06 00:00:00 CKT 0
-wanted=Tuesday 00:00:00
-
-TZ=Atlantic/South_Georgia - wrong day.
-tStamp=Thursday 1970-01-01 17:17:17 GST 0
-result=Tuesday 1970-01-06 00:00:00 GST 0
-wanted=Tuesday 00:00:00
-
-TZ=America/Port-au-Prince - wrong day.
-tStamp=Monday 2005-03-28 17:17:17 EST 0
-result=Monday 2005-04-04 00:00:00 EDT 1
-wanted=Monday 00:00:00
-
-TZ=Pacific/Enderbury - wrong day, off by 2 days.
-tStamp=Thursday 1970-01-01 17:17:17 PHOT 0
-result=Monday 1970-01-05 00:00:00 PHOT 0
-wanted=Monday 00:00:00
-
-TZ=Pacific/Kiritimati - wrong day, off by 2 days.
-tStamp=Thursday 1970-01-01 17:17:17 LINT 0
-result=Monday 1970-01-05 00:00:00 LINT 0
-wanted=Monday 00:00:00
-
-TZ=America/Managua - wrong day.
-tStamp=Tuesday 2005-04-05 17:17:17 CST 0
-result=Tuesday 2005-04-12 00:00:00 CDT 1
-wanted=Tuesday 00:00:00
-
-TZ=Pacific/Pitcairn - wrong day.
-tStamp=Thursday 1970-01-01 17:17:17 PNT 0
-result=Wednesday 1970-01-07 00:00:00 PNT 0
-wanted=Wednesday 00:00:00
-
-TZ=Pacific/Fakaofo - wrong day.
-tStamp=Thursday 1970-01-01 17:17:17 TKT 0
-result=Saturday 1970-01-03 00:00:00 TKT 0
-wanted=Saturday 00:00:00
-
-TZ=Pacific/Johnston - wrong day.
-tStamp=Thursday 1970-01-01 17:17:17 HST 0
-result=Friday 1970-01-02 00:00:00 HST 0
-wanted=Friday 00:00:00
diff --git a/ext/date/tests/bug33415-1.phpt b/ext/date/tests/bug33415-1.phpt
deleted file mode 100644
index 3d36af8a53..0000000000
--- a/ext/date/tests/bug33415-1.phpt
+++ /dev/null
@@ -1,33 +0,0 @@
---TEST--
-Bug #33415 [1] (Possibly invalid non-one-hour DST or timezone shifts)
---FILE--
-<?php
-
-print "TZ=America/Jujuy - Is it OK for this to be 2 AM, rather than 1
-AM as per most DST transitions?\n";
-putenv("TZ=America/Jujuy");
-$tStamp = mktime (17, 17, 17, 1, 7593, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?\n";
-putenv("TZ=Asia/Tbilisi");
-$tStamp = mktime (17, 17, 17, 1, 12863, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-?>
---EXPECT--
-TZ=America/Jujuy - Is it OK for this to be 2 AM, rather than 1
-AM as per most DST transitions?
-tStamp=Monday 1990-10-15 17:17:17 WART 0
-result=Monday 1990-10-22 00:00:00 WART 0
-wanted=Monday 00:00:00
-
-TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?
-tStamp=Sunday 2005-03-20 17:17:17 GET 0
-result=Sunday 2005-03-27 00:00:00 GET 0
-wanted=Sunday 00:00:00
diff --git a/ext/date/tests/bug33415-2.phpt b/ext/date/tests/bug33415-2.phpt
deleted file mode 100644
index a1e5930b5f..0000000000
--- a/ext/date/tests/bug33415-2.phpt
+++ /dev/null
@@ -1,342 +0,0 @@
---TEST--
-Bug #33415 [2] (Possibly invalid non-one-hour DST or timezone shifts)
---FILE--
-<?php
-
-print "TZ=Africa/Bujumbura - *Note*: Unexpected, as does not appear to
-have a DST or timezone transition.\n";
-putenv("TZ=Africa/Bujumbura");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Wednesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Wednesday 00:00:00\n\n";
-
-print "TZ=Asia/Thimbu - Is it OK for this to be 0:30 AM? yes\n";
-putenv("TZ=Asia/Thimbu");
-$tStamp = mktime (17, 17, 17, 1, 6476, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:30:00\n\n";
-
-print "TZ=Indian/Cocos - Is it OK for this to be 6:30 AM? Note: does not
-appear to have a DST or timezone transition.\n";
-putenv("TZ=Indian/Cocos");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=Africa/Lubumbashi - Is it OK for this to be 2 AM? Note: does
-not appear to have a DST or timezone transition.\n";
-putenv("TZ=Africa/Lubumbashi");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Saturday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Saturday 00:00:00\n\n";
-
-print "TZ=Asia/Kashgar - Is it OK for this to be 3 AM? yes\n";
-putenv("TZ=Asia/Kashgar");
-$tStamp = mktime (17, 17, 17, 1, 3767, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 03:00:00\n\n";
-
-print "TZ=Indian/Christmas - Is it OK for this to be 7 AM? Note: does
-not appear to have a DST or timezone transition.\n";
-putenv("TZ=Indian/Christmas");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:00:00\n\n";
-
-print "TZ=America/Santo_Domingo - Is it OK for this to be 0:30 AM? yes\n";
-putenv("TZ=America/Santo_Domingo");
-$tStamp = mktime (17, 17, 17, 1, 291, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:30:00\n\n";
-
-print "TZ=Pacific/Truk - Is it OK for this to be 10 AM? Note: does not
-appear to have a DST or timezone transition.\n";
-putenv("TZ=Pacific/Truk");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=Pacific/Ponape - Is it OK for this to be 11 AM? Note: does
-not appear to have a DST or timezone transition.\n";
-putenv("TZ=Pacific/Ponape");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=America/Scoresbysund - Is it OK for this to be 2 AM? yes\n";
-putenv("TZ=America/Scoresbysund");
-$tStamp = mktime (17, 17, 17, 1, 4099, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 02:00:00\n\n";
-
-print "TZ=America/Guyana - Is it OK for this to be 0:45 AM? yes\n";
-putenv("TZ=America/Guyana");
-$tStamp = mktime (17, 17, 17, 1, 2031, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:45:00\n\n";
-
-print "TZ=Asia/Tehran - Is it OK for this to be 0:30 AM? yes\n";
-putenv("TZ=Asia/Tehran");
-$tStamp = mktime (17, 17, 17, 1, 2855, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:30:00\n\n";
-
-print "TZ=Pacific/Tarawa - Is it OK for this to be Midday? Note: does
-not appear to have a DST or timezone transition.\n";
-putenv("TZ=Pacific/Tarawa");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:00:00\n\n";
-
-print "TZ=Africa/Monrovia - Is it OK for this to be 00:44:30 AM? yes\n";
-putenv("TZ=Africa/Monrovia");
-$tStamp = mktime (17, 17, 17, 1, 845, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:44:30\n\n";
-
-print "TZ=Asia/Katmandu - Is it OK for this to 0:15 AM?. yes\n";
-putenv("TZ=Asia/Katmandu");
-$tStamp = mktime (17, 17, 17, 1, 5838, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Wednesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Wednesday 00:15:00\n\n";
-
-print "TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes\n";
-putenv("TZ=Pacific/Nauru");
-$tStamp = mktime (17, 17, 17, 1, 3401, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:30:00\n\n";
-
-print "TZ=Pacific/Niue - Is it OK for this to be 0:30 AM? yes\n";
-putenv("TZ=Pacific/Niue");
-$tStamp = mktime (17, 17, 17, 1, 3189, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Sunday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Sunday 00:30:00\n\n";
-
-print "TZ=Pacific/Port_Moresby - Is it OK for this to be 10 AM? No DST
-or timezone transition.\n";
-putenv("TZ=Pacific/Port_Moresby");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 00:00:00\n\n";
-
-print "TZ=America/Miquelon - Is it OK for this to be 1 AM ? yes\n";
-putenv("TZ=America/Miquelon");
-$tStamp = mktime (17, 17, 17, 1, 3767, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Thursday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Thursday 01:00:00\n\n";
-
-print "TZ=Pacific/Palau - Is it OK for this to be 9 AM? No DST or
-timezone transition.\n";
-putenv("TZ=Pacific/Palau");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Saturday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Saturday 00:00:00\n\n";
-
-print "TZ=Pacific/Funafuti - Is it OK for this to be midday? Note: does
-not appear to have a DST or timezone transition.\n";
-putenv("TZ=Pacific/Funafuti");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Wednesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Wednesday 00:00:00\n\n";
-
-print "TZ=Pacific/Wake - Is it OK for this to be midday? Note: does not
-appear to have a DST or timezone transition.\n";
-putenv("TZ=Pacific/Wake");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=Pacific/Wallis - Is it OK for this to be midday? Note: does
-not appear to have a DST or timezone transition.\n";
-putenv("TZ=Pacific/Wallis");
-$tStamp = mktime (17, 17, 17, 1, 1, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Tuesday 00:00:00\n\n";
-
-print "TZ=America/Paramaribo - Is it OK for this to be 0:30 AM? yes\n";
-putenv("TZ=America/Paramaribo");
-$tStamp = mktime (17, 17, 17, 1, 5381, 1970);
-print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
-$strtotime_tstamp = strtotime("next Monday", $tStamp);
-print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
-print "wanted=Monday 00:30:00\n\n";
-
-?>
---EXPECT--
-TZ=Africa/Bujumbura - *Note*: Unexpected, as does not appear to
-have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 CAT 0
-result=Wednesday 1970-01-07 00:00:00 CAT 0
-wanted=Wednesday 00:00:00
-
-TZ=Asia/Thimbu - Is it OK for this to be 0:30 AM? yes
-tStamp=Thursday 1987-09-24 17:17:17 IST 0
-result=Thursday 1987-10-01 00:30:00 BTT 0
-wanted=Thursday 00:30:00
-
-TZ=Indian/Cocos - Is it OK for this to be 6:30 AM? Note: does not
-appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 CCT 0
-result=Thursday 1970-01-08 00:00:00 CCT 0
-wanted=Thursday 00:00:00
-
-TZ=Africa/Lubumbashi - Is it OK for this to be 2 AM? Note: does
-not appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 CAT 0
-result=Saturday 1970-01-03 00:00:00 CAT 0
-wanted=Saturday 00:00:00
-
-TZ=Asia/Kashgar - Is it OK for this to be 3 AM? yes
-tStamp=Thursday 1980-04-24 17:17:17 KAST 0
-result=Thursday 1980-05-01 03:00:00 CST 0
-wanted=Thursday 03:00:00
-
-TZ=Indian/Christmas - Is it OK for this to be 7 AM? Note: does
-not appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 CXT 0
-result=Sunday 1970-01-04 00:00:00 CXT 0
-wanted=Sunday 00:00:00
-
-TZ=America/Santo_Domingo - Is it OK for this to be 0:30 AM? yes
-tStamp=Sunday 1970-10-18 17:17:17 EST 0
-result=Sunday 1970-10-25 00:30:00 EHDT 1
-wanted=Sunday 00:30:00
-
-TZ=Pacific/Truk - Is it OK for this to be 10 AM? Note: does not
-appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 TRUT 0
-result=Tuesday 1970-01-06 00:00:00 TRUT 0
-wanted=Tuesday 00:00:00
-
-TZ=Pacific/Ponape - Is it OK for this to be 11 AM? Note: does
-not appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 PONT 0
-result=Monday 1970-01-05 00:00:00 PONT 0
-wanted=Monday 00:00:00
-
-TZ=America/Scoresbysund - Is it OK for this to be 2 AM? yes
-tStamp=Sunday 1981-03-22 17:17:17 CGT 0
-result=Sunday 1981-03-29 02:00:00 EGST 1
-wanted=Sunday 02:00:00
-
-TZ=America/Guyana - Is it OK for this to be 0:45 AM? yes
-tStamp=Thursday 1975-07-24 17:17:17 GYT 0
-result=Thursday 1975-07-31 00:45:00 GYT 0
-wanted=Thursday 00:45:00
-
-TZ=Asia/Tehran - Is it OK for this to be 0:30 AM? yes
-tStamp=Tuesday 1977-10-25 17:17:17 IRST 0
-result=Tuesday 1977-11-01 00:30:00 IRST 0
-wanted=Tuesday 00:30:00
-
-TZ=Pacific/Tarawa - Is it OK for this to be Midday? Note: does
-not appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 GILT 0
-result=Monday 1970-01-05 00:00:00 GILT 0
-wanted=Monday 00:00:00
-
-TZ=Africa/Monrovia - Is it OK for this to be 00:44:30 AM? yes
-tStamp=Monday 1972-04-24 17:17:17 LRT 0
-result=Monday 1972-05-01 00:44:30 GMT 0
-wanted=Monday 00:44:30
-
-TZ=Asia/Katmandu - Is it OK for this to 0:15 AM?. yes
-tStamp=Wednesday 1985-12-25 17:17:17 IST 0
-result=Wednesday 1986-01-01 00:15:00 NPT 0
-wanted=Wednesday 00:15:00
-
-TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes
-tStamp=Tuesday 1979-04-24 17:17:17 NRT 0
-result=Tuesday 1979-05-01 00:30:00 NRT 0
-wanted=Tuesday 00:30:00
-
-TZ=Pacific/Niue - Is it OK for this to be 0:30 AM? yes
-tStamp=Sunday 1978-09-24 17:17:17 NUT 0
-result=Sunday 1978-10-01 00:30:00 NUT 0
-wanted=Sunday 00:30:00
-
-TZ=Pacific/Port_Moresby - Is it OK for this to be 10 AM? No DST
-or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 PGT 0
-result=Thursday 1970-01-08 00:00:00 PGT 0
-wanted=Thursday 00:00:00
-
-TZ=America/Miquelon - Is it OK for this to be 1 AM ? yes
-tStamp=Thursday 1980-04-24 17:17:17 AST 0
-result=Thursday 1980-05-01 01:00:00 PMST 0
-wanted=Thursday 01:00:00
-
-TZ=Pacific/Palau - Is it OK for this to be 9 AM? No DST or
-timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 PWT 0
-result=Saturday 1970-01-03 00:00:00 PWT 0
-wanted=Saturday 00:00:00
-
-TZ=Pacific/Funafuti - Is it OK for this to be midday? Note: does
-not appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 TVT 0
-result=Wednesday 1970-01-07 00:00:00 TVT 0
-wanted=Wednesday 00:00:00
-
-TZ=Pacific/Wake - Is it OK for this to be midday? Note: does not
-appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 WAKT 0
-result=Tuesday 1970-01-06 00:00:00 WAKT 0
-wanted=Tuesday 00:00:00
-
-TZ=Pacific/Wallis - Is it OK for this to be midday? Note: does
-not appear to have a DST or timezone transition.
-tStamp=Thursday 1970-01-01 17:17:17 WFT 0
-result=Tuesday 1970-01-06 00:00:00 WFT 0
-wanted=Tuesday 00:00:00
-
-TZ=America/Paramaribo - Is it OK for this to be 0:30 AM? yes
-tStamp=Monday 1984-09-24 17:17:17 SRT 0
-result=Monday 1984-10-01 00:30:00 SRT 0
-wanted=Monday 00:30:00
diff --git a/ext/date/tests/bug33452.phpt b/ext/date/tests/bug33452.phpt
deleted file mode 100644
index e5abebf3c8..0000000000
--- a/ext/date/tests/bug33452.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #33452 (Support for year accompanying ISO week nr)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-echo date('Y-W', strtotime('2005-1-1')), "\n";
-echo date('o-W', strtotime('2005-1-1')), "\n";
-?>
---EXPECT--
-2005-53
-2004-53
diff --git a/ext/date/tests/bug33532.phpt b/ext/date/tests/bug33532.phpt
deleted file mode 100644
index 2a8da03412..0000000000
--- a/ext/date/tests/bug33532.phpt
+++ /dev/null
@@ -1,38 +0,0 @@
---TEST--
-Bug #33532 (Different output for strftime() and date())
---INI--
-error_reporting=2047
-date.timezone=UTC
---FILE--
-<?php
-putenv("TZ=");
-setlocale(LC_ALL, 'C');
-
-print "TZ has NOT been set\n";
-print "Should strftime==datestr? Strftime seems to assume GMT tStamp.\n";
-$input = "10:00:00 AM July 1 2005";
-print "input " . $input . "\n";
-$tStamp = strtotime($input);
-print "strftime " . strftime("%r %B%e %Y %Z %z", $tStamp) . "\n";
-print "datestr " . date ("H:i:s A F j Y T", $tStamp) . "\n";
-
-print "\nSetting TZ\n";
-putenv("TZ=Australia/Sydney");
-$input = "10:00:00 AM July 1 2005";
-print "input " . $input . "\n";
-$tStamp = strtotime($input);
-print "strftime " . strftime("%r %B%e %Y %Z %z", $tStamp) . "\n";
-print "datestr " . date ("H:i:s A F j Y T", $tStamp) . "\n";
-
-?>
---EXPECT--
-TZ has NOT been set
-Should strftime==datestr? Strftime seems to assume GMT tStamp.
-input 10:00:00 AM July 1 2005
-strftime 10:00:00 AM July 1 2005 UTC +0000
-datestr 10:00:00 AM July 1 2005 UTC
-
-Setting TZ
-input 10:00:00 AM July 1 2005
-strftime 10:00:00 AM July 1 2005 EST +1000
-datestr 10:00:00 AM July 1 2005 EST
diff --git a/ext/date/tests/bug33536.phpt b/ext/date/tests/bug33536.phpt
deleted file mode 100644
index aa5f5ddb38..0000000000
--- a/ext/date/tests/bug33536.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Bug #33456 (strtotime defaults to now even on non time string)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-var_dump(strtotime("monkey"));
-print date("Y-m-d", strtotime("monkey")) ."\n";
-print date("Y-m-d", false) ."\n";
-?>
---EXPECT--
-bool(false)
-1970-01-01
-1970-01-01
diff --git a/ext/date/tests/bug33562.phpt b/ext/date/tests/bug33562.phpt
deleted file mode 100644
index 8383a79ab7..0000000000
--- a/ext/date/tests/bug33562.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #33562 (date("") crashes)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-echo "[", date(""), "]\n";
-echo "done";
-?>
---EXPECT--
-[]
-done
diff --git a/ext/date/tests/bug33563.phpt b/ext/date/tests/bug33563.phpt
deleted file mode 100644
index 9f4eb7b4d2..0000000000
--- a/ext/date/tests/bug33563.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Bug #33563 (strtotime('+1 month',$abc) cant get right time)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-$strCurrDate = date('Y-m-d H:i:s',strtotime('2005-06-30 21:04:23'));
-$strMonAfter = date('Y-m-d H:i:s',strtotime('+1 month',strtotime($strCurrDate)));
-
-echo "strCurrDate:$strCurrDate strMonAfter:$strMonAfter";
-?>
---EXPECT--
-strCurrDate:2005-06-30 21:04:23 strMonAfter:2005-07-30 21:04:23
diff --git a/ext/date/tests/bug33578.phpt b/ext/date/tests/bug33578.phpt
deleted file mode 100644
index 4ba6df8597..0000000000
--- a/ext/date/tests/bug33578.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-Bug #33578 (strtotime() doesn't parse "11 Oct" format")
---FILE--
-<?php
- date_default_timezone_set("UTC");
- echo date('m/d/Y', strtotime('Oct 11')), "\n";
- echo date('m/d/Y', strtotime('11 Oct')), "\n";
- echo date('m/d/Y', strtotime('11 Oct 2005')), "\n";
- echo date('m/d/Y', strtotime('Oct11')), "\n";
- echo date('m/d/Y', strtotime('11Oct')), "\n";
- echo date('m/d/Y', strtotime('11Oct 2005')), "\n";
- echo date('m/d/Y', strtotime('11Oct2005')), "\n";
-?>
---EXPECTF--
-10/11/%d
-10/11/%d
-10/11/2005
-10/11/%d
-10/11/%d
-10/11/2005
-10/11/2005
diff --git a/ext/date/tests/bug33869.phpt b/ext/date/tests/bug33869.phpt
deleted file mode 100644
index 6957a6b7e2..0000000000
--- a/ext/date/tests/bug33869.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Bug #33869 (strtotime() doesn't parse "+1days" format)
---FILE--
-<?php
- date_default_timezone_set("UTC");
- $tm = strtotime("2005-01-01 01:01:01");
- echo date(DATE_ISO8601, strtotime('+5days', $tm));
- echo "\n";
- echo date(DATE_ISO8601, strtotime('+1month', $tm));
- echo "\n";
- echo date(DATE_ISO8601, strtotime('+1year', $tm));
- echo "\n";
- echo date(DATE_ISO8601, strtotime('+5 days', $tm));
- echo "\n";
- echo date(DATE_ISO8601, strtotime('+1 month', $tm));
- echo "\n";
- echo date(DATE_ISO8601, strtotime('+1 year', $tm));
- echo "\n";
-?>
---EXPECT--
-2005-01-06T01:01:01+0000
-2005-02-01T01:01:01+0000
-2006-01-01T01:01:01+0000
-2005-01-06T01:01:01+0000
-2005-02-01T01:01:01+0000
-2006-01-01T01:01:01+0000
diff --git a/ext/date/tests/bug33957.phpt b/ext/date/tests/bug33957.phpt
deleted file mode 100644
index 43f14ee315..0000000000
--- a/ext/date/tests/bug33957.phpt
+++ /dev/null
@@ -1,103 +0,0 @@
---TEST--
-Bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-for ($i = 14; $i <= 31; $i++) {
- echo "1992-12-$i ", date("W", strtotime("1992-12-$i")), "\n";
-}
-for ($i = 1; $i <= 8; $i++) {
- echo "1993-01-$i ", date("W", strtotime("1993-01-$i")), "\n";
-}
-echo "----\n";
-echo " ";
-foreach (range(1992, 2019) as $year) {
- echo "$year ";
-}
-echo "\n";
-
-for ($i = 14; $i <= 31; $i++) {
- echo " (12-$i) ";
- foreach (range(1992, 2019) as $year) {
- echo sprintf(" %02d-", date("W", strtotime("$year-12-$i")));
- echo sprintf("%04d ", date("o", strtotime("$year-12-$i")));
- }
- echo "\n";
-}
-for ($i = 1; $i <= 18; $i++) {
- printf("+1 (01-%02d) ", $i);
- foreach (range(1993, 2020) as $year) {
- echo sprintf(" %02d-", date("W", strtotime("$year-1-$i")));
- echo sprintf("%04d ", date("o", strtotime("$year-1-$i")));
- }
- echo "\n";
-}
-echo "----\n";
-?>
---EXPECT--
-1992-12-14 51
-1992-12-15 51
-1992-12-16 51
-1992-12-17 51
-1992-12-18 51
-1992-12-19 51
-1992-12-20 51
-1992-12-21 52
-1992-12-22 52
-1992-12-23 52
-1992-12-24 52
-1992-12-25 52
-1992-12-26 52
-1992-12-27 52
-1992-12-28 53
-1992-12-29 53
-1992-12-30 53
-1992-12-31 53
-1993-01-1 53
-1993-01-2 53
-1993-01-3 53
-1993-01-4 01
-1993-01-5 01
-1993-01-6 01
-1993-01-7 01
-1993-01-8 01
-----
- 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019
- (12-14) 51-1992 50-1993 50-1994 50-1995 50-1996 50-1997 51-1998 50-1999 50-2000 50-2001 50-2002 50-2003 51-2004 50-2005 50-2006 50-2007 50-2008 51-2009 50-2010 50-2011 50-2012 50-2013 50-2014 51-2015 50-2016 50-2017 50-2018 50-2019
- (12-15) 51-1992 50-1993 50-1994 50-1995 50-1996 51-1997 51-1998 50-1999 50-2000 50-2001 50-2002 51-2003 51-2004 50-2005 50-2006 50-2007 51-2008 51-2009 50-2010 50-2011 50-2012 50-2013 51-2014 51-2015 50-2016 50-2017 50-2018 50-2019
- (12-16) 51-1992 50-1993 50-1994 50-1995 51-1996 51-1997 51-1998 50-1999 50-2000 50-2001 51-2002 51-2003 51-2004 50-2005 50-2006 50-2007 51-2008 51-2009 50-2010 50-2011 50-2012 51-2013 51-2014 51-2015 50-2016 50-2017 50-2018 51-2019
- (12-17) 51-1992 50-1993 50-1994 50-1995 51-1996 51-1997 51-1998 50-1999 50-2000 51-2001 51-2002 51-2003 51-2004 50-2005 50-2006 51-2007 51-2008 51-2009 50-2010 50-2011 51-2012 51-2013 51-2014 51-2015 50-2016 50-2017 51-2018 51-2019
- (12-18) 51-1992 50-1993 50-1994 51-1995 51-1996 51-1997 51-1998 50-1999 51-2000 51-2001 51-2002 51-2003 51-2004 50-2005 51-2006 51-2007 51-2008 51-2009 50-2010 50-2011 51-2012 51-2013 51-2014 51-2015 50-2016 51-2017 51-2018 51-2019
- (12-19) 51-1992 50-1993 51-1994 51-1995 51-1996 51-1997 51-1998 50-1999 51-2000 51-2001 51-2002 51-2003 51-2004 51-2005 51-2006 51-2007 51-2008 51-2009 50-2010 51-2011 51-2012 51-2013 51-2014 51-2015 51-2016 51-2017 51-2018 51-2019
- (12-20) 51-1992 51-1993 51-1994 51-1995 51-1996 51-1997 51-1998 51-1999 51-2000 51-2001 51-2002 51-2003 52-2004 51-2005 51-2006 51-2007 51-2008 51-2009 51-2010 51-2011 51-2012 51-2013 51-2014 51-2015 51-2016 51-2017 51-2018 51-2019
- (12-21) 52-1992 51-1993 51-1994 51-1995 51-1996 51-1997 52-1998 51-1999 51-2000 51-2001 51-2002 51-2003 52-2004 51-2005 51-2006 51-2007 51-2008 52-2009 51-2010 51-2011 51-2012 51-2013 51-2014 52-2015 51-2016 51-2017 51-2018 51-2019
- (12-22) 52-1992 51-1993 51-1994 51-1995 51-1996 52-1997 52-1998 51-1999 51-2000 51-2001 51-2002 52-2003 52-2004 51-2005 51-2006 51-2007 52-2008 52-2009 51-2010 51-2011 51-2012 51-2013 52-2014 52-2015 51-2016 51-2017 51-2018 51-2019
- (12-23) 52-1992 51-1993 51-1994 51-1995 52-1996 52-1997 52-1998 51-1999 51-2000 51-2001 52-2002 52-2003 52-2004 51-2005 51-2006 51-2007 52-2008 52-2009 51-2010 51-2011 51-2012 52-2013 52-2014 52-2015 51-2016 51-2017 51-2018 52-2019
- (12-24) 52-1992 51-1993 51-1994 51-1995 52-1996 52-1997 52-1998 51-1999 51-2000 52-2001 52-2002 52-2003 52-2004 51-2005 51-2006 52-2007 52-2008 52-2009 51-2010 51-2011 52-2012 52-2013 52-2014 52-2015 51-2016 51-2017 52-2018 52-2019
- (12-25) 52-1992 51-1993 51-1994 52-1995 52-1996 52-1997 52-1998 51-1999 52-2000 52-2001 52-2002 52-2003 52-2004 51-2005 52-2006 52-2007 52-2008 52-2009 51-2010 51-2011 52-2012 52-2013 52-2014 52-2015 51-2016 52-2017 52-2018 52-2019
- (12-26) 52-1992 51-1993 52-1994 52-1995 52-1996 52-1997 52-1998 51-1999 52-2000 52-2001 52-2002 52-2003 52-2004 52-2005 52-2006 52-2007 52-2008 52-2009 51-2010 52-2011 52-2012 52-2013 52-2014 52-2015 52-2016 52-2017 52-2018 52-2019
- (12-27) 52-1992 52-1993 52-1994 52-1995 52-1996 52-1997 52-1998 52-1999 52-2000 52-2001 52-2002 52-2003 53-2004 52-2005 52-2006 52-2007 52-2008 52-2009 52-2010 52-2011 52-2012 52-2013 52-2014 52-2015 52-2016 52-2017 52-2018 52-2019
- (12-28) 53-1992 52-1993 52-1994 52-1995 52-1996 52-1997 53-1998 52-1999 52-2000 52-2001 52-2002 52-2003 53-2004 52-2005 52-2006 52-2007 52-2008 53-2009 52-2010 52-2011 52-2012 52-2013 52-2014 53-2015 52-2016 52-2017 52-2018 52-2019
- (12-29) 53-1992 52-1993 52-1994 52-1995 52-1996 01-1998 53-1998 52-1999 52-2000 52-2001 52-2002 01-2004 53-2004 52-2005 52-2006 52-2007 01-2009 53-2009 52-2010 52-2011 52-2012 52-2013 01-2015 53-2015 52-2016 52-2017 52-2018 52-2019
- (12-30) 53-1992 52-1993 52-1994 52-1995 01-1997 01-1998 53-1998 52-1999 52-2000 52-2001 01-2003 01-2004 53-2004 52-2005 52-2006 52-2007 01-2009 53-2009 52-2010 52-2011 52-2012 01-2014 01-2015 53-2015 52-2016 52-2017 52-2018 01-2020
- (12-31) 53-1992 52-1993 52-1994 52-1995 01-1997 01-1998 53-1998 52-1999 52-2000 01-2002 01-2003 01-2004 53-2004 52-2005 52-2006 01-2008 01-2009 53-2009 52-2010 52-2011 01-2013 01-2014 01-2015 53-2015 52-2016 52-2017 01-2019 01-2020
-+1 (01-01) 53-1992 52-1993 52-1994 01-1996 01-1997 01-1998 53-1998 52-1999 01-2001 01-2002 01-2003 01-2004 53-2004 52-2005 01-2007 01-2008 01-2009 53-2009 52-2010 52-2011 01-2013 01-2014 01-2015 53-2015 52-2016 01-2018 01-2019 01-2020
-+1 (01-02) 53-1992 52-1993 01-1995 01-1996 01-1997 01-1998 53-1998 52-1999 01-2001 01-2002 01-2003 01-2004 53-2004 01-2006 01-2007 01-2008 01-2009 53-2009 52-2010 01-2012 01-2013 01-2014 01-2015 53-2015 01-2017 01-2018 01-2019 01-2020
-+1 (01-03) 53-1992 01-1994 01-1995 01-1996 01-1997 01-1998 53-1998 01-2000 01-2001 01-2002 01-2003 01-2004 01-2005 01-2006 01-2007 01-2008 01-2009 53-2009 01-2011 01-2012 01-2013 01-2014 01-2015 53-2015 01-2017 01-2018 01-2019 01-2020
-+1 (01-04) 01-1993 01-1994 01-1995 01-1996 01-1997 01-1998 01-1999 01-2000 01-2001 01-2002 01-2003 01-2004 01-2005 01-2006 01-2007 01-2008 01-2009 01-2010 01-2011 01-2012 01-2013 01-2014 01-2015 01-2016 01-2017 01-2018 01-2019 01-2020
-+1 (01-05) 01-1993 01-1994 01-1995 01-1996 01-1997 02-1998 01-1999 01-2000 01-2001 01-2002 01-2003 02-2004 01-2005 01-2006 01-2007 01-2008 02-2009 01-2010 01-2011 01-2012 01-2013 01-2014 02-2015 01-2016 01-2017 01-2018 01-2019 01-2020
-+1 (01-06) 01-1993 01-1994 01-1995 01-1996 02-1997 02-1998 01-1999 01-2000 01-2001 01-2002 02-2003 02-2004 01-2005 01-2006 01-2007 01-2008 02-2009 01-2010 01-2011 01-2012 01-2013 02-2014 02-2015 01-2016 01-2017 01-2018 01-2019 02-2020
-+1 (01-07) 01-1993 01-1994 01-1995 01-1996 02-1997 02-1998 01-1999 01-2000 01-2001 02-2002 02-2003 02-2004 01-2005 01-2006 01-2007 02-2008 02-2009 01-2010 01-2011 01-2012 02-2013 02-2014 02-2015 01-2016 01-2017 01-2018 02-2019 02-2020
-+1 (01-08) 01-1993 01-1994 01-1995 02-1996 02-1997 02-1998 01-1999 01-2000 02-2001 02-2002 02-2003 02-2004 01-2005 01-2006 02-2007 02-2008 02-2009 01-2010 01-2011 01-2012 02-2013 02-2014 02-2015 01-2016 01-2017 02-2018 02-2019 02-2020
-+1 (01-09) 01-1993 01-1994 02-1995 02-1996 02-1997 02-1998 01-1999 01-2000 02-2001 02-2002 02-2003 02-2004 01-2005 02-2006 02-2007 02-2008 02-2009 01-2010 01-2011 02-2012 02-2013 02-2014 02-2015 01-2016 02-2017 02-2018 02-2019 02-2020
-+1 (01-10) 01-1993 02-1994 02-1995 02-1996 02-1997 02-1998 01-1999 02-2000 02-2001 02-2002 02-2003 02-2004 02-2005 02-2006 02-2007 02-2008 02-2009 01-2010 02-2011 02-2012 02-2013 02-2014 02-2015 01-2016 02-2017 02-2018 02-2019 02-2020
-+1 (01-11) 02-1993 02-1994 02-1995 02-1996 02-1997 02-1998 02-1999 02-2000 02-2001 02-2002 02-2003 02-2004 02-2005 02-2006 02-2007 02-2008 02-2009 02-2010 02-2011 02-2012 02-2013 02-2014 02-2015 02-2016 02-2017 02-2018 02-2019 02-2020
-+1 (01-12) 02-1993 02-1994 02-1995 02-1996 02-1997 03-1998 02-1999 02-2000 02-2001 02-2002 02-2003 03-2004 02-2005 02-2006 02-2007 02-2008 03-2009 02-2010 02-2011 02-2012 02-2013 02-2014 03-2015 02-2016 02-2017 02-2018 02-2019 02-2020
-+1 (01-13) 02-1993 02-1994 02-1995 02-1996 03-1997 03-1998 02-1999 02-2000 02-2001 02-2002 03-2003 03-2004 02-2005 02-2006 02-2007 02-2008 03-2009 02-2010 02-2011 02-2012 02-2013 03-2014 03-2015 02-2016 02-2017 02-2018 02-2019 03-2020
-+1 (01-14) 02-1993 02-1994 02-1995 02-1996 03-1997 03-1998 02-1999 02-2000 02-2001 03-2002 03-2003 03-2004 02-2005 02-2006 02-2007 03-2008 03-2009 02-2010 02-2011 02-2012 03-2013 03-2014 03-2015 02-2016 02-2017 02-2018 03-2019 03-2020
-+1 (01-15) 02-1993 02-1994 02-1995 03-1996 03-1997 03-1998 02-1999 02-2000 03-2001 03-2002 03-2003 03-2004 02-2005 02-2006 03-2007 03-2008 03-2009 02-2010 02-2011 02-2012 03-2013 03-2014 03-2015 02-2016 02-2017 03-2018 03-2019 03-2020
-+1 (01-16) 02-1993 02-1994 03-1995 03-1996 03-1997 03-1998 02-1999 02-2000 03-2001 03-2002 03-2003 03-2004 02-2005 03-2006 03-2007 03-2008 03-2009 02-2010 02-2011 03-2012 03-2013 03-2014 03-2015 02-2016 03-2017 03-2018 03-2019 03-2020
-+1 (01-17) 02-1993 03-1994 03-1995 03-1996 03-1997 03-1998 02-1999 03-2000 03-2001 03-2002 03-2003 03-2004 03-2005 03-2006 03-2007 03-2008 03-2009 02-2010 03-2011 03-2012 03-2013 03-2014 03-2015 02-2016 03-2017 03-2018 03-2019 03-2020
-+1 (01-18) 03-1993 03-1994 03-1995 03-1996 03-1997 03-1998 03-1999 03-2000 03-2001 03-2002 03-2003 03-2004 03-2005 03-2006 03-2007 03-2008 03-2009 03-2010 03-2011 03-2012 03-2013 03-2014 03-2015 03-2016 03-2017 03-2018 03-2019 03-2020
-----
diff --git a/ext/date/tests/bug34087.phpt b/ext/date/tests/bug34087.phpt
deleted file mode 100644
index 3fa3885481..0000000000
--- a/ext/date/tests/bug34087.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #34087 (strtotime() does not work with date format "Y/m/d")
---FILE--
-<?php
-date_default_timezone_set("UTC");
-echo "Y/m/d: ", strtotime("2005/8/12"), "\n";
-echo "Y-m-d: ", strtotime("2005-8-12"), "\n";
-
-echo date(DATE_ISO8601, strtotime("2005/1/2")), "\n";
-echo date(DATE_ISO8601, strtotime("2005/01/02")), "\n";
-echo date(DATE_ISO8601, strtotime("2005/01/2")), "\n";
-echo date(DATE_ISO8601, strtotime("2005/1/02")), "\n";
-?>
---EXPECT--
-Y/m/d: 1123804800
-Y-m-d: 1123804800
-2005-01-02T00:00:00+0000
-2005-01-02T00:00:00+0000
-2005-01-02T00:00:00+0000
-2005-01-02T00:00:00+0000
diff --git a/ext/date/tests/bug34304.phpt b/ext/date/tests/bug34304.phpt
deleted file mode 100644
index a2b26a14c5..0000000000
--- a/ext/date/tests/bug34304.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #34304 ()
---FILE--
-<?php
-date_default_timezone_set("UTC");
-echo date('o\-\WW\-N', strtotime('2 January 2005')), "\n";
-echo date('o\-\WW\-N', strtotime('9 January 2005')), "\n";
-?>
---EXPECT--
-2004-W53-7
-2005-W01-7
diff --git a/ext/date/tests/bug34676.phpt b/ext/date/tests/bug34676.phpt
deleted file mode 100644
index 6f616feb40..0000000000
--- a/ext/date/tests/bug34676.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Bug #34676 (missing support for strtotime("midnight") and strtotime("noon"))
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-$tests = array(
- 'noon', 'midnight'
-);
-
-foreach ($tests as $test) {
- $t = strtotime("2005-12-22 ". $test);
- printf("%-10s => %s\n", $test, date(DATE_ISO8601, $t));
-}
-
-?>
---EXPECT--
-noon => 2005-12-22T12:00:00+0000
-midnight => 2005-12-22T00:00:00+0000
diff --git a/ext/date/tests/bug34771.phpt b/ext/date/tests/bug34771.phpt
deleted file mode 100644
index a27d085a1d..0000000000
--- a/ext/date/tests/bug34771.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Bug #34771 (strtotime() fails with 1-12am/pm)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-$tests = array(
- '12am', '1am', '1pm',
- '12a.m.', '1a.m.', '1p.m.',
- '12:00am', '1:00am', '1:00pm',
- '12:00a.m.', '1:00a.m.', '1:00p.m.'
-);
-
-foreach ($tests as $test) {
- $t = strtotime("2005-12-22 ". $test);
- printf("%-10s => %s\n", $test, date(DATE_ISO8601, $t));
-}
-
-?>
---EXPECT--
-12am => 2005-12-22T00:00:00+0000
-1am => 2005-12-22T01:00:00+0000
-1pm => 2005-12-22T13:00:00+0000
-12a.m. => 2005-12-22T00:00:00+0000
-1a.m. => 2005-12-22T01:00:00+0000
-1p.m. => 2005-12-22T13:00:00+0000
-12:00am => 2005-12-22T00:00:00+0000
-1:00am => 2005-12-22T01:00:00+0000
-1:00pm => 2005-12-22T13:00:00+0000
-12:00a.m. => 2005-12-22T00:00:00+0000
-1:00a.m. => 2005-12-22T01:00:00+0000
-1:00p.m. => 2005-12-22T13:00:00+0000
diff --git a/ext/date/tests/bug35143.phpt b/ext/date/tests/bug35143.phpt
deleted file mode 100644
index 02b0072713..0000000000
--- a/ext/date/tests/bug35143.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-Bug #35143 (gettimeofday() ignores current time zone)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-var_dump(date_default_timezone_get());
-var_dump(gettimeofday());
-?>
---EXPECTF--
-string(3) "UTC"
-array(4) {
- ["sec"]=>
- int(%d)
- ["usec"]=>
- int(%d)
- ["minuteswest"]=>
- int(0)
- ["dsttime"]=>
- int(0)
-}
diff --git a/ext/date/tests/bug35218.phpt b/ext/date/tests/bug35218.phpt
deleted file mode 100644
index 725f03c4aa..0000000000
--- a/ext/date/tests/bug35218.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Bug #35218 (strtotime no longer ignores timezone comments like "(PST)")
---FILE--
-<?php
-date_default_timezone_set("UTC");
-$date = 'Sun, 13 Nov 2005 22:56:10 -0800 (PST)';
-$date_fixed = 'Sun, 13 Nov 2005 22:56:10 -0800';
-
-var_dump(strtotime($date));
-var_dump(strtotime($date_fixed));
-?>
---EXPECT--
-int(1131951370)
-int(1131951370)
diff --git a/ext/date/tests/bug35414.phpt b/ext/date/tests/bug35414.phpt
deleted file mode 100644
index f6af5110fb..0000000000
--- a/ext/date/tests/bug35414.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-Bug #35414 (strtotime() no longer works with ordinal suffix)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n";
-echo date(DATE_ISO8601, strtotime("26th Nov", 1134340285)) . "\n";
-echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n";
-echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
-?>
---EXPECT--
-2005-11-26T18:18:00+0000
-2005-11-26T00:00:00+0000
-2005-12-04T00:00:00+0000
-2005-12-04T00:00:00+0000
diff --git a/ext/date/tests/bug35422.phpt b/ext/date/tests/bug35422.phpt
deleted file mode 100644
index 8273c75411..0000000000
--- a/ext/date/tests/bug35422.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Bug #35422 (strtotime() does not parse times with UTC as timezone)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 UTC")) . "\n";
-echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 GMT")) . "\n";
-?>
---EXPECT--
-2000-07-01T00:00:00+0000
-2000-07-01T00:00:00+0000
diff --git a/ext/date/tests/bug35425.phpt b/ext/date/tests/bug35425.phpt
deleted file mode 100644
index 4259b49a1c..0000000000
--- a/ext/date/tests/bug35425.phpt
+++ /dev/null
@@ -1,30 +0,0 @@
---TEST--
-Bug #35425 (idate() function ignores timezone settings)
---FILE--
-<?php
-putenv('TZ=America/Montreal');
-
-$time = mktime(1,1,1,1,1,2005);
-foreach (array('B','d','h','H','i','I','L','m','s','t','U','w','W','y','Y','z','Z') as $v) {
- var_dump(idate($v, $time));
-}
-
-?>
---EXPECT--
-int(292)
-int(1)
-int(1)
-int(1)
-int(1)
-int(0)
-int(0)
-int(1)
-int(1)
-int(31)
-int(1104559261)
-int(6)
-int(53)
-int(5)
-int(2005)
-int(0)
-int(-18000)
diff --git a/ext/date/tests/bug35456.phpt b/ext/date/tests/bug35456.phpt
deleted file mode 100644
index 6432b99445..0000000000
--- a/ext/date/tests/bug35456.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-Bug #35456 (+ 1 [time unit] format did not work)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-$t = 1133216119;
-
-echo date(DATE_ISO8601, strtotime("+ 1 day", $t)) . "\n";
-echo date(DATE_ISO8601, strtotime("+ 1 month", $t)) . "\n";
-echo date(DATE_ISO8601, strtotime("+ 1 week", $t)) . "\n";
-?>
---EXPECT--
-2005-11-29T22:15:19+0000
-2005-12-28T22:15:19+0000
-2005-12-05T22:15:19+0000
diff --git a/ext/date/tests/bug35499.phpt b/ext/date/tests/bug35499.phpt
deleted file mode 100644
index 2fbcbf0bfa..0000000000
--- a/ext/date/tests/bug35499.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-Bug #35499 (strtotime() does not handle whitespace around the date string)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime("11/20/2005 8:00 AM \r\n")) . "\n";
-echo date(DATE_ISO8601, strtotime(" 11/20/2005 8:00 AM \r\n")) . "\n";
-var_dump(strtotime(" a "));
-var_dump(strtotime(" \n "));
-?>
---EXPECT--
-2005-11-20T08:00:00+0000
-2005-11-20T08:00:00+0000
-bool(false)
-bool(false)
diff --git a/ext/date/tests/bug35624.phpt b/ext/date/tests/bug35624.phpt
deleted file mode 100644
index 722adba823..0000000000
--- a/ext/date/tests/bug35624.phpt
+++ /dev/null
@@ -1,29 +0,0 @@
---TEST--
-Bug #35624 (strtotime() does not handle 3 character weekdays)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-$days = array("monday","mon","tuesday","tue","wednesday","wed","thursday","thu","friday","fri","saturday","sat","sunday","sun");
-
-foreach ($days as $day) {
- echo date("D", strtotime($day));
- echo date("D", strtotime(ucfirst($day)));
- echo "\n";
-}
-?>
---EXPECT--
-MonMon
-MonMon
-TueTue
-TueTue
-WedWed
-WedWed
-ThuThu
-ThuThu
-FriFri
-FriFri
-SatSat
-SatSat
-SunSun
-SunSun
diff --git a/ext/date/tests/bug35630.phpt b/ext/date/tests/bug35630.phpt
deleted file mode 100644
index b111b1aaf2..0000000000
--- a/ext/date/tests/bug35630.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #35630 (strtotime() crashes on non-separated relative modifiers)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime('5 january 2006+3day+1day')) . "\n";
-
-?>
---EXPECT--
-2006-01-09T00:00:00+0000
diff --git a/ext/date/tests/bug35699.phpt b/ext/date/tests/bug35699.phpt
deleted file mode 100644
index 5e4951e9fc..0000000000
--- a/ext/date/tests/bug35699.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Bug #35699 (date() can't handle leap years before 1970)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n";
-echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n";
-echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
-?>
---EXPECT--
-1964-06-06T00:00:00+0000
-1963-06-06T00:00:00+0000
-1964-01-06T00:00:00+0000
diff --git a/ext/date/tests/bug35705.phpt b/ext/date/tests/bug35705.phpt
deleted file mode 100644
index 6894160a4d..0000000000
--- a/ext/date/tests/bug35705.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #35705 (strtotime() fails to parse soap date format without TZ)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime('2000-10-10T10:12:30.000')) . "\n";
-
-?>
---EXPECT--
-2000-10-10T10:12:30+0000
diff --git a/ext/date/tests/bug35885.phpt b/ext/date/tests/bug35885.phpt
deleted file mode 100644
index 5f4e5d58cf..0000000000
--- a/ext/date/tests/bug35885.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Bug #35885 (strtotime("NOW") no longer works)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-$ts = date(DATE_ISO8601, strtotime('NOW'));
-$ts2 = date(DATE_ISO8601, time());
-
-var_dump($ts == $ts2);
-
-?>
---EXPECT--
-bool(true)
diff --git a/ext/date/tests/bug35887.phpt b/ext/date/tests/bug35887.phpt
deleted file mode 100644
index e6ea7bd388..0000000000
--- a/ext/date/tests/bug35887.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #35887 (wddx_deserialize not parsing dateTime fields properly)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date(DATE_ISO8601, strtotime('2006-1-6T0:0:0-8:0')) . "\n";
-
-?>
---EXPECT--
-2006-01-06T08:00:00+0000
diff --git a/ext/date/tests/bug36224.phpt b/ext/date/tests/bug36224.phpt
deleted file mode 100644
index 1690f4e7b2..0000000000
--- a/ext/date/tests/bug36224.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Bug #36224 (date(DATE_ATOM) gives wrong resulsts)
---FILE--
-<?php
-date_default_timezone_set("Europe/Oslo");
-
-echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56Z')) . "\n";
-echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56')) . "\n";
-
-?>
---EXPECT--
-2006-01-31T20:23:56+01:00
-2006-01-31T19:23:56+01:00
diff --git a/ext/date/tests/bug36510.phpt b/ext/date/tests/bug36510.phpt
deleted file mode 100644
index ea8bb028b2..0000000000
--- a/ext/date/tests/bug36510.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Bug #36510 (strtotime() fails to parse date strings with tabs)
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-$t = 1140973388;
-
-var_dump(strtotime("-2 hours", $t));
-var_dump(strtotime("-2\thours", $t));
-?>
---EXPECT--
-int(1140966188)
-int(1140966188)
diff --git a/ext/date/tests/bug36599.phpt b/ext/date/tests/bug36599.phpt
deleted file mode 100644
index b34a7c288f..0000000000
--- a/ext/date/tests/bug36599.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Bug #36599 (DATE_W3C format constant incorrect).
---FILE--
-<?php
-date_default_timezone_set("UTC");
-
-echo date( DATE_ATOM, strtotime( "2006-03-03 08:47:55" ) ), "\n";
-echo date( DATE_W3C, strtotime( "2006-03-03 08:47:55" ) ), "\n";
-?>
---EXPECT--
-2006-03-03T08:47:55+00:00
-2006-03-03T08:47:55+00:00
diff --git a/ext/date/tests/bug36988.phpt b/ext/date/tests/bug36988.phpt
deleted file mode 100644
index d35e58939a..0000000000
--- a/ext/date/tests/bug36988.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Bug #36988 (mktime freezes on long numbers)
---INI--
-date.timezone=GMT
---FILE--
-<?php
-$start = microtime(true);
-$a = mktime(1, 1, 1, 1, 1, 11111111111);
-echo (microtime(true) - $start) < 1 ? "smaller than one second" : "more than a second";
-?>
---EXPECT--
-smaller than one second
diff --git a/ext/date/tests/bug37017.phpt b/ext/date/tests/bug37017.phpt
deleted file mode 100644
index 61dc8ba383..0000000000
--- a/ext/date/tests/bug37017.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-Bug #37017 (strtotime fails before 13:00:00 with some time zones identifiers).
---INI--
-date.timezone=GMT
---FILE--
-<?php
-echo strtotime("2006-05-12 13:00:01 America/New_York"), "\n";
-echo strtotime("2006-05-12 13:00:00 America/New_York"), "\n";
-echo strtotime("2006-05-12 12:59:59 America/New_York"), "\n";
-echo strtotime("2006-05-12 12:59:59 GMT"), "\n";
-?>
---EXPECT--
-1147453201
-1147453200
-1147453199
-1147438799
diff --git a/ext/date/tests/bug37368.phpt b/ext/date/tests/bug37368.phpt
deleted file mode 100644
index 5be1c96798..0000000000
--- a/ext/date/tests/bug37368.phpt
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-Bug #37368 (Incorrect timestamp returned for strtotime()).
---INI--
-date.timezone=UTC
---FILE--
-<?php
-echo date("r", strtotime("Mon, 08 May 2006 13:06:44 -0400 +30 days"));
-?>
---EXPECT--
-Wed, 07 Jun 2006 17:06:44 +0000
diff --git a/ext/date/tests/bug37514.phpt b/ext/date/tests/bug37514.phpt
deleted file mode 100644
index 31318b46a9..0000000000
--- a/ext/date/tests/bug37514.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #37514 (strtotime doesn't assume year correctly).
---INI--
-date.timezone=UTC
---FILE--
-<?php
-echo date('r', strtotime('May 18th 5:05')), "\n";
-echo date('r', strtotime('May 18th 5:05pm')), "\n";
-echo date('r', strtotime('May 18th 5:05 pm')), "\n";
-echo date('r', strtotime('May 18th 5:05am')), "\n";
-echo date('r', strtotime('May 18th 5:05 am')), "\n";
-echo date('r', strtotime('May 18th 2006 5:05pm')), "\n";
-?>
---EXPECT--
-Thu, 18 May 2006 05:05:00 +0000
-Thu, 18 May 2006 17:05:00 +0000
-Thu, 18 May 2006 17:05:00 +0000
-Thu, 18 May 2006 05:05:00 +0000
-Thu, 18 May 2006 05:05:00 +0000
-Thu, 18 May 2006 17:05:00 +0000
diff --git a/ext/date/tests/bug37616.phpt b/ext/date/tests/bug37616.phpt
deleted file mode 100644
index 7652501765..0000000000
--- a/ext/date/tests/bug37616.phpt
+++ /dev/null
@@ -1,9 +0,0 @@
---TEST--
-Bug #37616 (DATE_RFC822 does not product RFC 822 dates)
---FILE--
-<?php
- date_default_timezone_set("Europe/Oslo");
- var_dump(date(DATE_RFC822, strtotime("1 Jul 06 14:27:30 +0200")));
-?>
---EXPECT--
-string(29) "Sat, 01 Jul 06 14:27:30 +0200"
diff --git a/ext/date/tests/bug37747.phpt b/ext/date/tests/bug37747.phpt
deleted file mode 100644
index 465f791c41..0000000000
--- a/ext/date/tests/bug37747.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #37747 (strtotime segfaults when given "nextyear")
---FILE--
-<?php
- date_default_timezone_set("Europe/Oslo");
- var_dump(strtotime("nextyear"));
- echo "ALIVE\n";
-?>
---EXPECT--
-bool(false)
-ALIVE
diff --git a/ext/date/tests/bug38229.phpt b/ext/date/tests/bug38229.phpt
deleted file mode 100644
index 472a05faef..0000000000
--- a/ext/date/tests/bug38229.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Bug #38229 (strtotime() does not parse YYYY-MM)
---FILE--
-<?php
-date_default_timezone_set("GMT");
-echo date("Y-m", strtotime('2006-1'))."\n";
-echo date("Y-m", strtotime('2006-03'))."\n";
-echo date("Y-m", strtotime('2006-12'))."\n";
-?>
---EXPECT--
-2006-01
-2006-03
-2006-12
diff --git a/ext/date/tests/date.phpt b/ext/date/tests/date.phpt
deleted file mode 100644
index ccdb3cda94..0000000000
--- a/ext/date/tests/date.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-date() function
---FILE--
-<?php
-$tmp = "cr";
-putenv ("TZ=GMT0");
-
-for($a = 0;$a < strlen($tmp); $a++){
- echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
-}
-
-putenv ("TZ=MET");
-
-for($a = 0;$a < strlen($tmp); $a++){
- echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
-}
-?>
---EXPECT--
-c: 2003-01-23T12:20:59+00:00
-r: Thu, 23 Jan 2003 12:20:59 +0000
-c: 2003-01-23T13:20:59+01:00
-r: Thu, 23 Jan 2003 13:20:59 +0100
diff --git a/ext/date/tests/date_constants.phpt b/ext/date/tests/date_constants.phpt
deleted file mode 100644
index 132e24159b..0000000000
--- a/ext/date/tests/date_constants.phpt
+++ /dev/null
@@ -1,75 +0,0 @@
---TEST--
-Date constants
---FILE--
-<?php
- date_default_timezone_set("Europe/Oslo");
- $constants = array(
- DATE_ATOM,
- DATE_COOKIE,
- DATE_ISO8601,
- DATE_RFC822,
- DATE_RFC850,
- DATE_RFC1036,
- DATE_RFC1123,
- DATE_RFC2822,
- DATE_RFC3339,
- DATE_RSS,
- DATE_W3C
- );
-
- foreach($constants as $const) {
- var_dump(date($const, strtotime("1 Jul 06 14:27:30 +0200")));
- var_dump(date($const, strtotime("2006-05-30T14:32:13+02:00")));
- }
-
- print "\n";
-
- var_dump(
- DATE_ATOM == DateTime::ATOM,
- DATE_COOKIE == DateTime::COOKIE,
- DATE_ISO8601 == DateTime::ISO8601,
- DATE_RFC822 == DateTime::RFC822,
- DATE_RFC850 == DateTime::RFC850,
- DATE_RFC1036 == DateTime::RFC1036,
- DATE_RFC1123 == DateTime::RFC1123,
- DATE_RFC2822 == DateTime::RFC2822,
- DATE_RFC3339 == DateTime::RFC3339,
- DATE_RSS == DateTime::RSS,
- DATE_W3C == DateTime::W3C
- );
-?>
---EXPECT--
-string(25) "2006-07-01T14:27:30+02:00"
-string(25) "2006-05-30T14:32:13+02:00"
-string(33) "Saturday, 01-Jul-06 14:27:30 CEST"
-string(32) "Tuesday, 30-May-06 14:32:13 CEST"
-string(24) "2006-07-01T14:27:30+0200"
-string(24) "2006-05-30T14:32:13+0200"
-string(29) "Sat, 01 Jul 06 14:27:30 +0200"
-string(29) "Tue, 30 May 06 14:32:13 +0200"
-string(33) "Saturday, 01-Jul-06 14:27:30 CEST"
-string(32) "Tuesday, 30-May-06 14:32:13 CEST"
-string(29) "Sat, 01 Jul 06 14:27:30 +0200"
-string(29) "Tue, 30 May 06 14:32:13 +0200"
-string(31) "Sat, 01 Jul 2006 14:27:30 +0200"
-string(31) "Tue, 30 May 2006 14:32:13 +0200"
-string(31) "Sat, 01 Jul 2006 14:27:30 +0200"
-string(31) "Tue, 30 May 2006 14:32:13 +0200"
-string(25) "2006-07-01T14:27:30+02:00"
-string(25) "2006-05-30T14:32:13+02:00"
-string(31) "Sat, 01 Jul 2006 14:27:30 +0200"
-string(31) "Tue, 30 May 2006 14:32:13 +0200"
-string(25) "2006-07-01T14:27:30+02:00"
-string(25) "2006-05-30T14:32:13+02:00"
-
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
diff --git a/ext/date/tests/date_create-1.phpt b/ext/date/tests/date_create-1.phpt
deleted file mode 100644
index 365d54dc94..0000000000
--- a/ext/date/tests/date_create-1.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-date_create() function [1]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
---FILE--
-<?php
-date_default_timezone_set('Europe/Oslo');
-$tz1 = timezone_open("GMT");
-$tz2 = timezone_open("Europe/London");
-$tz3 = timezone_open("America/Los_Angeles");
-$d = array();
-$d[] = date_create("2005-07-14 22:30:41");
-$d[] = date_create("2005-07-14 22:30:41 GMT");
-$d[] = date_create("2005-07-14 22:30:41 CET");
-$d[] = date_create("2005-07-14 22:30:41 CEST");
-$d[] = date_create("2005-07-14 22:30:41 Europe/Oslo");
-$d[] = date_create("2005-07-14 22:30:41 America/Los_Angeles");
-
-$d[] = date_create("2005-07-14 22:30:41", $tz1);
-$d[] = date_create("2005-07-14 22:30:41", $tz2);
-$d[] = date_create("2005-07-14 22:30:41", $tz3);
-
-$d[] = date_create("2005-07-14 22:30:41 GMT", $tz1);
-$d[] = date_create("2005-07-14 22:30:41 GMT", $tz2);
-$d[] = date_create("2005-07-14 22:30:41 GMT", $tz3);
-
-$d[] = date_create("2005-07-14 22:30:41 Europe/Oslo", $tz1);
-$d[] = date_create("2005-07-14 22:30:41 America/Los_Angeles", $tz2);
-
-foreach($d as $date) {
- echo $date->format(DateTime::ISO8601), "\n";
-}
-?>
---EXPECT--
-2005-07-14T22:30:41+0200
-2005-07-14T22:30:41+0000
-2005-07-14T22:30:41+0100
-2005-07-14T22:30:41+0200
-2005-07-14T22:30:41+0200
-2005-07-14T22:30:41-0700
-2005-07-14T22:30:41+0000
-2005-07-14T22:30:41+0100
-2005-07-14T22:30:41-0700
-2005-07-14T22:30:41+0000
-2005-07-14T22:30:41+0000
-2005-07-14T22:30:41+0000
-2005-07-14T22:30:41+0200
-2005-07-14T22:30:41-0700
diff --git a/ext/date/tests/date_create-2.phpt b/ext/date/tests/date_create-2.phpt
deleted file mode 100644
index 4aa33595d8..0000000000
--- a/ext/date/tests/date_create-2.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-date_create() function [2]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
---FILE--
-<?php
-date_default_timezone_set("GMT");
-$d = date_create("2005-07-18 22:10:00 +0400");
-echo $d->format('D, d M Y H:i:s T'), "\n";
-?>
---EXPECT--
-Mon, 18 Jul 2005 22:10:00 GMT+0400
diff --git a/ext/date/tests/date_default_timezone_get-1.phpt b/ext/date/tests/date_default_timezone_get-1.phpt
deleted file mode 100644
index b6494658e4..0000000000
--- a/ext/date/tests/date_default_timezone_get-1.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-date_default_timezone_get() function [1]
---INI--
-date.timezone=
---FILE--
-<?php
- putenv('TZ=');
- echo date_default_timezone_get(), "\n";
- echo date('e'), "\n";
-?>
---EXPECTF--
-Strict Standards: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-1.php on line 3
-UTC
-
-Strict Standards: date(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-1.php on line 4
-UTC
diff --git a/ext/date/tests/date_default_timezone_get-2.phpt b/ext/date/tests/date_default_timezone_get-2.phpt
deleted file mode 100644
index 73013a7626..0000000000
--- a/ext/date/tests/date_default_timezone_get-2.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-date_default_timezone_get() function [2]
---INI--
-date.timezone=CEST
---FILE--
-<?php
- putenv('TZ=');
- echo date_default_timezone_get(), "\n";
-?>
---EXPECTF--
-Strict Standards: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-2.php on line 3
-UTC
diff --git a/ext/date/tests/date_default_timezone_get-3.phpt b/ext/date/tests/date_default_timezone_get-3.phpt
deleted file mode 100644
index 0e2e3c53e5..0000000000
--- a/ext/date/tests/date_default_timezone_get-3.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-date_default_timezone_get() function [3]
---INI--
-date.timezone=
---FILE--
-<?php
- putenv('TZ=Europe/Rome');
- echo date_default_timezone_get(), "\n";
-
- date_default_timezone_set("America/Chicago");
- echo date_default_timezone_get(), "\n";
-?>
---EXPECT--
-Europe/Rome
-America/Chicago
diff --git a/ext/date/tests/date_default_timezone_set-1.phpt b/ext/date/tests/date_default_timezone_set-1.phpt
deleted file mode 100644
index 3c7a9aa4d6..0000000000
--- a/ext/date/tests/date_default_timezone_set-1.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-date_default_timezone_set() function [1]
---INI--
-date.timezone=
---FILE--
-<?php
- putenv("TZ=");
- $date1 = strtotime("2005-01-12 08:00:00");
- $date2 = strtotime("2005-07-12 08:00:00");
- date_default_timezone_set("America/Indiana/Knox");
- $date3 = strtotime("2005-01-12 08:00:00");
- $date4 = strtotime("2005-07-12 08:00:00");
-
- echo date_default_timezone_get(), "\n";
- echo date(DATE_ISO8601, $date1), "\n";
- echo date(DATE_ISO8601, $date2), "\n";
- echo date(DATE_ISO8601, $date3), "\n";
- echo date(DATE_ISO8601, $date4), "\n";
-?>
---EXPECTF--
-Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_set-1.php on line 3
-
-Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_set-1.php on line 4
-America/Indiana/Knox
-2005-01-12T03:00:00-0500
-2005-07-12T03:00:00-0500
-2005-01-12T08:00:00-0500
-2005-07-12T08:00:00-0500
diff --git a/ext/date/tests/date_modify-1.phpt b/ext/date/tests/date_modify-1.phpt
deleted file mode 100644
index 7707b7fc24..0000000000
--- a/ext/date/tests/date_modify-1.phpt
+++ /dev/null
@@ -1,30 +0,0 @@
---TEST--
-date_modify() function [1]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
---FILE--
-<?php
-date_default_timezone_set("Pacific/Kwajalein");
-$ts = date_create("Thu Aug 19 1993 23:59:59");
-echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
-$ts->modify("+1 second");
-echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
-
-date_default_timezone_set("Europe/Amsterdam");
-$ts = date_create("Sun Mar 27 01:59:59 2005");
-echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
-$ts->modify("+1 second");
-echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
-
-$ts = date_create("Sun Oct 30 01:59:59 2005");
-echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
-$ts->modify("+ 1 hour 1 second");
-echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
-?>
---EXPECT--
-Thu, 19 Aug 1993 23:59:59 KWAT
-Sat, 21 Aug 1993 00:00:00 MHT
-Sun, 27 Mar 2005 01:59:59 CET
-Sun, 27 Mar 2005 03:00:00 CEST
-Sun, 30 Oct 2005 01:59:59 CEST
-Sun, 30 Oct 2005 03:00:00 CET
diff --git a/ext/date/tests/date_modify-2.phpt b/ext/date/tests/date_modify-2.phpt
deleted file mode 100644
index cc197fcdc4..0000000000
--- a/ext/date/tests/date_modify-2.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-date_modify() function [2]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
---FILE--
-<?php
-date_default_timezone_set("GMT");
-$d = date_create("2005-07-18 22:10:00 +0400");
-echo date_format($d, 'D, d M Y H:i:s T'), "\n";
-date_modify($d, "+1 hour");
-echo date_format($d, 'D, d M Y H:i:s T'), "\n";
-?>
---EXPECT--
-Mon, 18 Jul 2005 22:10:00 GMT+0400
-Mon, 18 Jul 2005 23:10:00 GMT+0400
diff --git a/ext/date/tests/default-timezone-1.phpt b/ext/date/tests/default-timezone-1.phpt
deleted file mode 100644
index ea5f2e6b84..0000000000
--- a/ext/date/tests/default-timezone-1.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-date.timezone setting [1]
---INI--
-date.timezone=GMT
---FILE--
-<?php
- putenv('TZ='); // clean TZ so that it doesn't bypass the ini option
- echo strtotime("2005-06-18 22:15:44");
-?>
---EXPECT--
-1119132944
diff --git a/ext/date/tests/default-timezone-2.phpt b/ext/date/tests/default-timezone-2.phpt
deleted file mode 100644
index c9a404bccb..0000000000
--- a/ext/date/tests/default-timezone-2.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-date.timezone setting [2]
---INI--
-date.timezone=Europe/Oslo
---FILE--
-<?php
- putenv('TZ='); // clean TZ so that it doesn't bypass the ini option
- echo strtotime("2005-06-18 22:15:44");
-?>
---EXPECT--
-1119125744
diff --git a/ext/date/tests/format-negative-timestamp.phpt b/ext/date/tests/format-negative-timestamp.phpt
deleted file mode 100644
index 5fd6a65897..0000000000
--- a/ext/date/tests/format-negative-timestamp.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-strtotime() - Format: @timestamps
---FILE--
-<?php
-date_default_timezone_set("GMT");
-
-$i = 5;
-$max = getrandmax();
-$max_2 = $max / 2;
-
-while($i--) {
- $new_tm = rand(1, $max);
- if ($new_tm > $max_2)
- $new_tm *= -1;
-
- if (strtotime("@$new_tm") != $new_tm) {
- echo "Error when parsing: @$new_tm\n";
- }
-}
-
-echo "done!";
-?>
---EXPECT--
-done!
diff --git a/ext/date/tests/mktime-1.phpt b/ext/date/tests/mktime-1.phpt
deleted file mode 100644
index 87fc0df685..0000000000
--- a/ext/date/tests/mktime-1.phpt
+++ /dev/null
@@ -1,44 +0,0 @@
---TEST--
-Check for mktime with out-of-range parameters
---INI--
-error_reporting=2047
---FILE--
-<?php
- date_default_timezone_set("Europe/Amsterdam");
- # MacOS/X libc implementation doesn't treat out-of-range values
- # the same way other unices do (Bug# 10686) so some extra code
- # was added to datetime.c to take care of this
- echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n";
- echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n";
- echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n";
- echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n";
- echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
- echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n";
-
- putenv("TZ=Europe/London");
- echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,-1))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,-1))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,0))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,1))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,-1))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,0))."\n";
- echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,1))."\n";
-?>
---EXPECT--
-2000-02-29
-2000-02-28
-2000-02-29
-2001-02-28
-2001-03-01
-1999-11-30
-2000-05-29 12:00:00
-2000-05-29 13:00:00
-2000-05-29 12:00:00
-2000-01-31 12:00:00
-2000-01-31 12:00:00
-2000-01-31 11:00:00
-2000-04-29 12:00:00
-2000-04-29 13:00:00
-2000-04-29 12:00:00
diff --git a/ext/date/tests/mktime-2.phpt b/ext/date/tests/mktime-2.phpt
deleted file mode 100644
index aa259b577c..0000000000
--- a/ext/date/tests/mktime-2.phpt
+++ /dev/null
@@ -1,51 +0,0 @@
---TEST--
-mktime() [2]
---INI--
-error_reporting=2047
---FILE--
-<?php
-$timezones = array(
- 'GMT0',
- 'Europe/London'
-);
-
-foreach($timezones as $timezone)
-{
- putenv('TZ='.$timezone);
-
- /* status of daylight saving time unknown */
- var_dump(mktime(0, 0, 0, 1, 1, 2002));
- /* status of daylight saving time unknown */
- var_dump(mktime(0, 0, 0, 1, 1, 2002, -1));
- /* daylight saving time is not in effect */
- var_dump(mktime(0, 0, 0, 1, 1, 2002, 0));
- /* daylight saving time is in effect */
- var_dump(mktime(0, 0, 0, 1, 1, 2002, 1));
-
- /* status of daylight saving time unknown */
- var_dump(mktime(0, 0, 0, 7, 1, 2002));
- /* status of daylight saving time unknown */
- var_dump(mktime(0, 0, 0, 7, 1, 2002, -1));
- /* daylight saving time is not in effect */
- var_dump(mktime(0, 0, 0, 7, 1, 2002, 0));
- /* daylight saving time is in effect */
- var_dump(mktime(0, 0, 0, 7, 1, 2002, 1));
-}
-?>
---EXPECTF--
-int(1009843200)
-int(1009843200)
-int(1009843200)
-int(%s)
-int(1025481600)
-int(1025481600)
-int(1025481600)
-int(%s)
-int(1009843200)
-int(1009843200)
-int(1009843200)
-int(1009839600)
-int(1025478000)
-int(1025478000)
-int(1025481600)
-int(1025478000)
diff --git a/ext/date/tests/mktime-3.phpt b/ext/date/tests/mktime-3.phpt
deleted file mode 100644
index 0d19074fc3..0000000000
--- a/ext/date/tests/mktime-3.phpt
+++ /dev/null
@@ -1,54 +0,0 @@
---TEST--
-mktime() [3]
---INI--
-error_reporting=2047
---FILE--
-<?php
-$tzs = array("America/Toronto", "Europe/Oslo");
-$years = array(0, 69, 70, 71, 99, 100, 105, 1900, 1901, 1902, 1999, 2000, 2001);
-
-foreach ($tzs as $tz) {
- echo $tz, "\n";
- date_default_timezone_set($tz);
- foreach ($years as $year) {
- printf("Y: %4d - ", $year);
- $ret = mktime(1, 1, 1, 1, 1, $year);
- if ($ret == FALSE) {
- echo "out of range\n";
- } else {
- echo date("F ".DATE_ISO8601, $ret), "\n";
- }
- }
- echo "\n";
-}
-?>
---EXPECT--
-America/Toronto
-Y: 0 - January 2000-01-01T01:01:01-0500
-Y: 69 - out of range
-Y: 70 - January 1970-01-01T01:01:01-0500
-Y: 71 - January 1971-01-01T01:01:01-0500
-Y: 99 - January 1999-01-01T01:01:01-0500
-Y: 100 - January 2000-01-01T01:01:01-0500
-Y: 105 - January 2005-01-01T01:01:01-0500
-Y: 1900 - out of range
-Y: 1901 - out of range
-Y: 1902 - January 1902-01-01T01:01:01-0500
-Y: 1999 - January 1999-01-01T01:01:01-0500
-Y: 2000 - January 2000-01-01T01:01:01-0500
-Y: 2001 - January 2001-01-01T01:01:01-0500
-
-Europe/Oslo
-Y: 0 - January 2000-01-01T01:01:01+0100
-Y: 69 - out of range
-Y: 70 - January 1970-01-01T01:01:01+0100
-Y: 71 - January 1971-01-01T01:01:01+0100
-Y: 99 - January 1999-01-01T01:01:01+0100
-Y: 100 - January 2000-01-01T01:01:01+0100
-Y: 105 - January 2005-01-01T01:01:01+0100
-Y: 1900 - out of range
-Y: 1901 - out of range
-Y: 1902 - January 1902-01-01T01:01:01+0100
-Y: 1999 - January 1999-01-01T01:01:01+0100
-Y: 2000 - January 2000-01-01T01:01:01+0100
-Y: 2001 - January 2001-01-01T01:01:01+0100
diff --git a/ext/date/tests/oo_001.phpt b/ext/date/tests/oo_001.phpt
deleted file mode 100644
index 9b6142158f..0000000000
--- a/ext/date/tests/oo_001.phpt
+++ /dev/null
@@ -1,53 +0,0 @@
---TEST--
-date OO interface
---INI--
-date.timezone=UTC
---FILE--
-<?php
-class _d extends DateTime {
- function __construct() {
- }
-}
-class _t extends DateTimeZone {
- function __construct() {
- }
-}
-
-$d = new DateTime;
-var_dump($d->format("Y-m-d H:i:s"));
-
-$d = new _d;
-var_dump($d->format("Y-m-d H:i:s"));
-
-try {
- new DateTime("1am todax");
-} catch (Exception $e) {
- echo $e->getMessage(),"\n";
-}
-
-$t = new DateTimeZone("UTC");
-var_dump($t->getName());
-
-$t = new _t;
-var_dump($t->getName());
-
-try {
- new DateTimeZone("GottaFindThisOne");
-} catch (Exception $e) {
- echo $e->getMessage(),"\n";
-}
-
-echo "DONE\n";
-?>
---EXPECTF--
-string(19) "%d-%d-%d %d:%d:%d"
-
-Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %soo_001.php on line %d
-bool(false)
-DateTime::__construct(): Failed to parse time string (1am todax) at position 4 (t): The timezone could not be found in the database
-string(3) "UTC"
-
-Warning: DateTimeZone::getName(): The DateTimeZone object has not been correctly initialized by its constructor in %soo_001.php on line %d
-bool(false)
-DateTimeZone::__construct(): Unknown or bad timezone (GottaFindThisOne)
-DONE
diff --git a/ext/date/tests/oo_002.phpt b/ext/date/tests/oo_002.phpt
deleted file mode 100644
index a83cb583b6..0000000000
--- a/ext/date/tests/oo_002.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-date OO cloning
---INI--
-date.timezone=Europe/Berlin
---FILE--
-<?php
-class _d extends DateTime {}
-class _t extends DateTimeZone {}
-$d = new _d("1pm Aug 1 GMT");
-var_dump($d->format(DateTime::RFC822));
-$c = clone $d;
-var_dump($c->format(DateTime::RFC822));
-$d->modify("1 hour after");
-$c->modify("1 second ago");
-var_dump($d->format(DateTime::RFC822));
-var_dump($c->format(DateTime::RFC822));
-$t = new _t("Asia/Tokyo");
-var_dump($t->getName());
-$c = clone $t;
-var_dump($c->getName());
-?>
---EXPECT--
-string(29) "Tue, 01 Aug 06 13:00:00 +0000"
-string(29) "Tue, 01 Aug 06 13:00:00 +0000"
-string(29) "Tue, 01 Aug 06 14:00:00 +0000"
-string(29) "Tue, 01 Aug 06 12:59:59 +0000"
-string(10) "Asia/Tokyo"
-string(10) "Asia/Tokyo"
diff --git a/ext/date/tests/strtotime-mysql.phpt b/ext/date/tests/strtotime-mysql.phpt
deleted file mode 100755
index 88a8f10fed..0000000000
--- a/ext/date/tests/strtotime-mysql.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-strtotime() and mysql timestamps
---FILE--
-<?php
-date_default_timezone_set('UTC');
-
-/* Format: YYYYMMDDHHMMSS */
-$d[] = '19970523091528';
-$d[] = '20001231185859';
-$d[] = '20800410101010'; // overflow..
-
-foreach($d as $date) {
- $time = strtotime($date);
-
- if (is_integer($time)) {
- var_dump(date('r', $time));
- } else {
- var_dump($time);
- }
-}
-?>
---EXPECT--
-string(31) "Fri, 23 May 1997 09:15:28 +0000"
-string(31) "Sun, 31 Dec 2000 18:58:59 +0000"
-bool(false)
diff --git a/ext/date/tests/strtotime.phpt b/ext/date/tests/strtotime.phpt
deleted file mode 100644
index 6560d7f1fd..0000000000
--- a/ext/date/tests/strtotime.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-strtotime() function
---FILE--
-<?php
-date_default_timezone_set('Europe/Oslo');
-$d = array();
-$d[] = strtotime("2005-07-14 22:30:41");
-$d[] = strtotime("2005-07-14 22:30:41 GMT");
-
-foreach($d as $date) {
- echo date(DATE_ISO8601, $date), "\n";
-}
-?>
---EXPECT--
-2005-07-14T22:30:41+0200
-2005-07-15T00:30:41+0200
diff --git a/ext/date/tests/strtotime2.phpt b/ext/date/tests/strtotime2.phpt
deleted file mode 100644
index b8b605923d..0000000000
--- a/ext/date/tests/strtotime2.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-strtotime() on date constants
---FILE--
-<?php
-
-date_default_timezone_set("Europe/Oslo");
-$time = time();
-
-$constants = array(
- 'DATE_ATOM',
- 'DATE_COOKIE',
- 'DATE_ISO8601',
- 'DATE_RFC822',
- 'DATE_RFC850',
- 'DATE_RFC1036',
- 'DATE_RFC1123',
- 'DATE_RFC2822',
- 'DATE_RFC3339',
- 'DATE_RSS',
- 'DATE_W3C'
-);
-
-
-foreach ($constants as $const) {
- echo "$const:\t";
- echo ((strtotime(date(constant($const), $time)) === $time) ? "OK" : "FAIL") . "\n";
-}
-?>
---EXPECT--
-DATE_ATOM: OK
-DATE_COOKIE: OK
-DATE_ISO8601: OK
-DATE_RFC822: OK
-DATE_RFC850: OK
-DATE_RFC1036: OK
-DATE_RFC1123: OK
-DATE_RFC2822: OK
-DATE_RFC3339: OK
-DATE_RSS: OK
-DATE_W3C: OK
diff --git a/ext/date/tests/strtotime3.phpt b/ext/date/tests/strtotime3.phpt
deleted file mode 100644
index c5d13d8a6f..0000000000
--- a/ext/date/tests/strtotime3.phpt
+++ /dev/null
@@ -1,69 +0,0 @@
---TEST--
-strtotime() function
---FILE--
-<?php
-date_default_timezone_set('Europe/Lisbon');
-$time = 1150494719; // 16/June/2006
-
-$strs = array(
- '',
- " \t\r\n000",
- 'yesterday',
- '22:49:12',
- '22:49:12 bogusTZ',
- '22.49.12.42GMT',
- '22.49.12.42bogusTZ',
- 't0222',
- 't0222 t0222',
- '022233',
- '022233 bogusTZ',
- '2-3-2004',
- '2.3.2004',
- '20060212T23:12:23UTC',
- '20060212T23:12:23 bogusTZ',
- '2006167', //pgydotd
- 'Jan-15-2006', //pgtextshort
- '2006-Jan-15', //pgtextreverse
- '10/Oct/2000:13:55:36 +0100', //clf
- '10/Oct/2000:13:55:36 +00100', //clf
- '2006',
- '1986', // year
- 'JAN',
- 'January',
-);
-
-foreach ($strs as $str) {
- $t = strtotime($str, $time);
- if (is_integer($t)) {
- var_dump(date(DATE_RFC2822, $t));
- } else {
- var_dump($t);
- }
-}
-
-?>
---EXPECT--
-bool(false)
-bool(false)
-string(31) "Thu, 15 Jun 2006 00:00:00 +0100"
-string(31) "Fri, 16 Jun 2006 22:49:12 +0100"
-bool(false)
-string(31) "Fri, 16 Jun 2006 23:49:12 +0100"
-bool(false)
-string(31) "Fri, 16 Jun 2006 02:22:00 +0100"
-bool(false)
-string(31) "Fri, 16 Jun 2006 02:22:33 +0100"
-bool(false)
-string(31) "Tue, 02 Mar 2004 00:00:00 +0000"
-string(31) "Tue, 02 Mar 2004 00:00:00 +0000"
-string(31) "Sun, 12 Feb 2006 23:12:23 +0000"
-bool(false)
-string(31) "Fri, 16 Jun 2006 00:00:00 +0100"
-string(31) "Sun, 15 Jan 2006 00:00:00 +0000"
-string(31) "Sun, 15 Jan 2006 00:00:00 +0000"
-string(31) "Tue, 10 Oct 2000 13:55:36 +0100"
-bool(false)
-string(31) "Fri, 16 Jun 2006 20:06:00 +0100"
-string(31) "Mon, 16 Jun 1986 22:51:59 +0100"
-string(31) "Mon, 16 Jan 2006 00:00:00 +0000"
-string(31) "Mon, 16 Jan 2006 00:00:00 +0000"
diff --git a/ext/date/tests/timezone-configuration.phpt b/ext/date/tests/timezone-configuration.phpt
deleted file mode 100644
index 147b10a823..0000000000
--- a/ext/date/tests/timezone-configuration.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-timezone configuration [1]
---INI--
-date.timezone=GMT
---FILE--
-<?php
- putenv('TZ=Europe/Oslo');
- echo strtotime("2005-06-18 22:15:44"), "\n";
-
- putenv('TZ=Europe/London');
- echo strtotime("2005-06-18 22:15:44"), "\n";
-
- date_default_timezone_set('Europe/Oslo');
- echo strtotime("2005-06-18 22:15:44"), "\n";
-?>
---EXPECT--
-1119125744
-1119129344
-1119125744
diff --git a/ext/date/tests/timezones.phpt b/ext/date/tests/timezones.phpt
deleted file mode 100644
index c7e470ab8c..0000000000
--- a/ext/date/tests/timezones.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-setting bogus timezones
---FILE--
-<?php
-
-//bogus
-var_dump(date_default_timezone_set('AAA'));
-var_dump(date_default_timezone_set('ZZZ'));
-
-
-//now the first and the last one
-var_dump(date_default_timezone_set("Africa/Abidjan"));
-var_dump(date_default_timezone_set("Zulu"));
-
-echo "done\n";
-
-?>
---EXPECTF--
-Notice: date_default_timezone_set(): Timezone ID 'AAA' is invalid in %stimezones.php on line 4
-bool(false)
-
-Notice: date_default_timezone_set(): Timezone ID 'ZZZ' is invalid in %stimezones.php on line 5
-bool(false)
-bool(true)
-bool(true)
-done