php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23095 mktime() has optional arguments
Submitted: 2003-04-07 11:03 UTC Modified: 2003-04-08 15:13 UTC
From: colin at easydns dot com Assigned: cmv (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
 [2003-04-07 11:03 UTC] colin at easydns dot com
I know the manual page for mktime says:

"Arguments may be left out in order from right to left; any arguments thus omitted will be set to the current value according to the local date and time."

So, shouldn't the function spec read:

int mktime ( [int hour [, int minute [, int second [, int month [, int day [, int year [, int is_dst]]]]]]])

Ugly, perhaps, but accurate.

- Colin

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-08 15:13 UTC] cmv@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 00:00:02 2026 UTC