ID: 49382
Updated by: [email protected]
Reported By: klawd at kamundo dot de
-Status: Open
+Status: Assigned
Bug Type: Reproducible crash
Operating System: Debian GNU/Linux 5.0
PHP Version: 5.3.0
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2009-08-27 07:52:37] klawd at kamundo dot de
Description:
------------
Can not access property date of DateTime.
Reproduce code:
---------------
$dt=new DateTime('1742-05-23 00:00:00'); echo $dt->date;
gets me Notice: Undefined property: DateTime::$date
strangely though, this works:
$dt=new DateTime('1742-05-23 00:00:00'); print_r($dt); echo $dt->date;
DateTime Object ( [date] => 1742-05-23 00:00:00 [timezone_type] => 3
[timezone] => UTC ) 1742-05-23 00:00:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49382&edit=1