diff options
| author | Derick Rethans <derick@php.net> | 2005-07-05 21:38:37 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2005-07-05 21:38:37 +0000 |
| commit | a81e8ae3583450e1cfa765081a2d27c8630c4195 (patch) | |
| tree | 8a60063de1bf3fc33ede7f601100354f4f4a6d9f | |
| parent | aa5084d17babdec0899439868478a0b8b291e888 (diff) | |
| download | php-git-a81e8ae3583450e1cfa765081a2d27c8630c4195.tar.gz | |
- Added testcase for bug #33578.
| -rw-r--r-- | ext/date/tests/bug33578.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/date/tests/bug33578.phpt b/ext/date/tests/bug33578.phpt new file mode 100644 index 0000000000..f70a8a5081 --- /dev/null +++ b/ext/date/tests/bug33578.phpt @@ -0,0 +1,13 @@ +--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"; +?> +--EXPECTF-- +10/11/%d +10/11/%d +10/11/2005 |
