php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64851 DateTimeImmutable::createFromFormat() returns DateTime
Submitted: 2013-05-15 23:01 UTC Modified: 2013-09-12 13:25 UTC
From: vrana@php.net Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5.5.0RC1 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vrana@php.net
New email:
PHP Version: OS:

 

 [2013-05-15 23:01 UTC] 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

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-15 23:01 UTC] vrana@php.net
-Assigned To: +Assigned To: derick
 [2013-05-15 23:01 UTC] vrana@php.net
Derick, can you please take a look?
 [2013-09-12 13:25 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 01:01:29 2025 UTC