summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug33452.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug33452.phpt')
-rw-r--r--ext/date/tests/bug33452.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/date/tests/bug33452.phpt b/ext/date/tests/bug33452.phpt
new file mode 100644
index 0000000000..75287a2f27
--- /dev/null
+++ b/ext/date/tests/bug33452.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #33452 (Support for year accompanying ISO week nr)
+--FILE--
+<?php
+echo date('Y-W', strtotime('2005-1-1')), "\n";
+echo date('o-W', strtotime('2005-1-1')), "\n";
+?>
+--EXPECT--
+2005-53
+2004-53