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
 [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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 11:01:30 2024 UTC