Bug #51987 [NEW]: Datetime fails to parse an ISO 8601 ordinal date (extended format)
| From: | jbondc at openmv dot com | Date: | Thu, 03 Jun 2010 11:55:51 +0000 |
| Subject: | Bug #51987 [NEW]: Datetime fails to parse an ISO 8601 ordinal date (extended format) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-151049@lists.php.net to get a copy of this message | ||
From:
Operating system: FreeBSD
PHP version: 5.2.13
Package: Date/time related
Bug Type: Bug
Bug description:Datetime fails to parse an ISO 8601 ordinal date (extended format)
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
--
Edit bug report at http://bugs.php.net/bug.php?id=51987&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51987&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51987&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=51987&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=51987&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51987&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51987&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51987&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51987&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51987&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51987&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51987&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51987&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51987&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51987&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51987&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51987&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51987&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51987&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51987&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51987&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51987&r=mysqlcfg