php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63522 Mistake in documentation
Submitted: 2012-11-14 20:57 UTC Modified: 2012-11-14 22:07 UTC
From: lemyx at ukr dot net Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.18 OS: Win 7
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: lemyx at ukr dot net
New email:
PHP Version: OS:

 

 [2012-11-14 20:57 UTC] lemyx at ukr dot net
Description:
------------
---
From manual page: http://www.php.net/function.gmmktime#refsect1-function.gmmktime-examples
---

On the manual page there is "Example #1 gmmktime() basic example"
<?php
// Prints: July 1, 2000 is on a Friday
echo "July 1, 2000 is on a " . date("l", gmmktime(0, 0, 0, 7, 1, 2000));
?>

But actualy this example prints
July 1, 2000 is on a Saturday
not 
July 1, 2000 is on a Friday



Test script:
---------------
echo "July 1, 2000 is on a " . date("l", gmmktime(0, 0, 0, 7, 1, 2000));

Expected result:
----------------
July 1, 2000 is on a Saturday

Actual result:
--------------
July 1, 2000 is on a Saturday

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-14 22:07 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2012-11-14 22:07 UTC] krakjoe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC