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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat Apr 20 03:01:28 2024 UTC