summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug50680.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug50680.phpt')
-rw-r--r--ext/date/tests/bug50680.phpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/date/tests/bug50680.phpt b/ext/date/tests/bug50680.phpt
new file mode 100644
index 000000000..99b138146
--- /dev/null
+++ b/ext/date/tests/bug50680.phpt
@@ -0,0 +1,9 @@
+--TEST--
+Bug #50680 ("eighth" quantifier is not understood)
+--INI--
+date.timezone=UTC
+--FILE--
+<?php
+var_dump(date("d", strtotime("March 1 eighth day 2009")));
+--EXPECT--
+string(2) "09"