From: caluml at gmail dot com
Operating system: Linux
PHP version: 4.4.2
PHP Bug Type: Feature/Change Request
Bug description: Request to change mktime parameter order
Description:
------------
Please can we get the mktime function accepting its parameters in a
"standard" order?
Either small to big, or big to small, but something consistent.
It's insane as it is.
I did check to see if this had been reported, and couldn't find anything,
so apologies if it has been.
Reproduce code:
---------------
print date("Y-m-d H:i:s", mktime(06,05,04,03,02,01) );
Expected result:
----------------
I expect to see either:
2006-05-04 03:02:01
or
2001-02-03 04:05:06
Actual result:
--------------
I see this:
2001-03-02 06:05:04
--
Edit bug report at http://bugs.php.net/?id=37282&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37282&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=37282&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37282&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37282&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37282&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37282&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37282&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37282&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37282&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37282&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37282&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37282&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37282&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37282&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37282&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37282&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37282&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37282&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37282&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37282&r=mysqlcfg