|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-06-03 13:55 UTC] jbondc at openmv dot com
Description:
------------
PHP 5.2.12 with Suhosin-Patch 0.9.7 (cli) (built: Dec 30 2009 15:41:26)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
Test script:
---------------
// Ordinal date — 12 April 1985
$d1 = new Datetime('1985102');
// OK
$d2 = new Datetime('1985-102');
// Exception: DateTime::__construct(): Failed to parse time string (1985-102) at position 7 (2): Unexpected character
PatchesImplementation_with_various_bug_fixes (last revision 2011-01-26 21:41 UTC by jbondc at openmv dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
Please leave this bug open, I will look at submitting a patch. There is no reason not to support: $d2 = new Datetime('1985-001'); $d2 = new Datetime('1985-002'); ... $d2 = new Datetime('1985-365'); AND $d2 = new Datetime('1985-01'); $d2 = new Datetime('1985-12');