From: todd dot farrell at linkmarketservices dot com dot au
Operating system: Win32 / Solaris 8
PHP version: 5.1.2
PHP Bug Type: Scripting Engine problem
Bug description: strtotime() fails to parse dates in dd/mm/yyyy format
Description:
------------
Specifiying a date in the format 31/12/2005 fails to parse however the
American format 12/31/2005 works.
This works in PHP 5.0.4 on Solaris 8 but no longer works with the
strtotime() changes in 5.1.2.
Some more testing revealed that various formats do not work when the day
precedes the month e.g. 31-12-2005 that used to work in 5.0.4.
(We are aware that this does not necessarily produce sensible results e.g.
strtotime("31/12/2005") != strtotime("12/31/2005") even in 5.0.4 although
it seems that it should at least still *work* in the same way...)
If you need any more information please let me know.
Reproduce code:
---------------
<?php
print strtotime("31/12/2005");
?>
Expected result:
----------------
1184162400
Actual result:
--------------
nothing
--
Edit bug report at http://bugs.php.net/?id=36396&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36396&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36396&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36396&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36396&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36396&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36396&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36396&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36396&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36396&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36396&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36396&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36396&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36396&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36396&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36396&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36396&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36396&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36396&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36396&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36396&r=mysqlcfg