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
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: 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: Fri Dec 27 12:01:29 2024 UTC