Bug #64851 [Asn->Csd]: DateTimeImmutable::createFromFormat() returns DateTime

From: Date: Thu, 12 Sep 2013 13:25:42 +0000
Subject: Bug #64851 [Asn->Csd]: DateTimeImmutable::createFromFormat() returns DateTime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-181545@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64851&edit=1 ID: 64851 Updated by: nikic@php.net Reported by: vrana@php.net Summary: DateTimeImmutable::createFromFormat() returns DateTime -Status: Assigned +Status: Closed Type: Bug Package: Date/time related Operating System: Any PHP Version: 5.5.0RC1 Assigned To: derick Block user comment: N Private report: N New Comment: Fixed by https://github.com/php/php-src/commit/165f544ae9a3ac674a533a45ad8a8d5dccfa2536. Previous Comments: ------------------------------------------------------------------------ [2013-05-15 23:01:34] vrana@php.net Derick, can you please take a look? ------------------------------------------------------------------------ [2013-05-15 23:01:19] vrana@php.net Description: ------------ It should return DateTimeImmutable. Test script: --------------- <?php echo get_class(DateTimeImmutable::createFromFormat('j-M-Y', '15-Feb-2009')); ?> Expected result: ---------------- DateTimeImmutable Actual result: -------------- DateTime ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64851&edit=1

« previous php.bugs (#181545) next »