Edit report at https://bugs.php.net/bug.php?id=64851&edit=1
ID: 64851 Updated by: ni...@php.net Reported by: vr...@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] vr...@php.net Derick, can you please take a look? ------------------------------------------------------------------------ [2013-05-15 23:01:19] vr...@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