strtotime doesn't accept 3 character weekdays

Bug #35624 strtotime doesn't accept 3 character weekdays
Submitted: 2005-12-10 19:11 UTC Modified: 2005-12-11 23:37 UTC
From: uwe dot dauernheim at gmx dot de Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5CVS-2005-12-10 (cvs) OS: *
Private report: No CVE-ID: None

 [2005-12-10 19:11 UTC] uwe dot dauernheim at gmx dot de

Description:
------------
The function strtotime() does not work correctly, when using three character weekdays.

Reproduce code:
---------------
echo date('D', strtotime('mon'));

Expected result:
----------------
Mon

Actual result:
--------------
(Suggest it's saturday)

Mon (5.0.4)
Mon (5.0.5)
Sat (5.1.0)
Sat (5.1.1)
? (CVS)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2005-12-11 23:37 UTC] iliaa@php.net

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.