#49382 [Opn->Asn]: can't access DateTime->date

From: Date: Thu, 27 Aug 2009 09:18:16 +0000
Subject: #49382 [Opn->Asn]: can't access DateTime->date
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141603@lists.php.net to get a copy of this message
ID: 49382 Updated by: derick@php.net 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

« previous php.bugs (#141603) next »