diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-07-27 13:01:10 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-07-27 13:01:10 +0000 |
commit | 2a2450cb59dcdc7a2eda55cad6eddf942ee9a985 (patch) | |
tree | 458fa3afa2cd34bf698cf4fa76e591fe2196bacf /ext/date/tests/bug38229.phpt | |
parent | 484698f6fe9dd735ab3d945230803b89268d5a1d (diff) | |
download | php-git-2a2450cb59dcdc7a2eda55cad6eddf942ee9a985.tar.gz |
MFB: Fixed bug #38229 (strtotime() does not parse YYYY-MM format).
Diffstat (limited to 'ext/date/tests/bug38229.phpt')
-rw-r--r-- | ext/date/tests/bug38229.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/date/tests/bug38229.phpt b/ext/date/tests/bug38229.phpt new file mode 100644 index 0000000000..472a05faef --- /dev/null +++ b/ext/date/tests/bug38229.phpt @@ -0,0 +1,13 @@ +--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 |