ID:               51097
 Updated by:       der...@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

Reply via email to