#51097 [Opn->Bgs]: new DataTime crashs
| From: | derick@php.net | Date: | Sat, 20 Feb 2010 21:28:15 +0000 |
| Subject: | #51097 [Opn->Bgs]: new DataTime crashs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147903@lists.php.net to get a copy of this message | ||
ID: 51097
Updated by: derick@php.net
Reported By: phpbugs at rizzt dot kicks-ass dot org
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: linux
PHP Version: 5.3.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2010-02-20 18:19:51] phpbugs at rizzt dot kicks-ass dot org
Description:
------------
new DateTime('123') throws an exception
Reproduce code:
---------------
new DateTime('123');
echo "X";
Expected result:
----------------
X
Actual result:
--------------
Fatal error: Uncaught exception 'Exception' with message
'DateTime::__construct(): Failed to parse time string (123) at position
0 (1): Unexpected character' in /home/devel/x.php:5
Stack trace:
#0 /home/devel/x.php(5): DateTime->__construct('123')
#1 {main}
thrown in /home/devel/x.php on line 5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=51097&edit=1