php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76641 Incorrect PHP versions for DateTime::getTimezone
Submitted: 2018-07-18 21:00 UTC Modified: 2018-07-19 10:10 UTC
From: php_bugs at multiwebinc dot com Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php_bugs at multiwebinc dot com
New email:
PHP Version: OS:

 

 [2018-07-18 21:00 UTC] php_bugs at multiwebinc dot com
Description:
------------
---
From manual page: http://www.php.net/datetime.gettimezone
---

Manual says (PHP 5 >= 5.2.1 < 5.5.0), however this method was never removed.

https://3v4l.org/hKbmi

Test script:
---------------
<?php

var_dump((new \DateTime)->getTimezone());


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-19 10:10 UTC] derick@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: derick
 [2018-07-19 10:10 UTC] derick@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 21:01:28 2024 UTC