summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug35630.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug35630.phpt')
-rw-r--r--ext/date/tests/bug35630.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/date/tests/bug35630.phpt b/ext/date/tests/bug35630.phpt
new file mode 100644
index 0000000..b111b1a
--- /dev/null
+++ b/ext/date/tests/bug35630.phpt
@@ -0,0 +1,11 @@
+--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