Bug #53539 [NEW]: Bug still not fixed
| From: | kugel at rci dot rutgers dot edu | Date: | Mon, 13 Dec 2010 15:59:43 +0000 |
| Subject: | Bug #53539 [NEW]: Bug still not fixed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-156966@lists.php.net to get a copy of this message | ||
From:
Operating system: Fedora
PHP version: 5.3SVN-2010-12-13 (SVN)
Package: *General Issues
Bug Type: Bug
Bug description:Bug still not fixed
Description:
------------
---
From manual page: http://www.php.net/function.strtotime#Changelog
---
"5.2.7 In PHP 5 prior to 5.2.7, requesting a given occurrence of a given
weekday in a month where that weekday was the first day of the month would
incorrectly add one week to the returned timestamp. This has been corrected
in 5.2.7 and later versions."
Contrary to the above, this bug still exists in PHP 5.2.13, 5.2.14, and
5.3.3.
Test script:
---------------
<?php
date_default_timezone_set("America/New_York");
echo date("D, M j Y", strtotime("first Saturday January 2011 8:00pm")) .
"\n";
echo date("D, M j Y", strtotime("third Saturday January 2011 8:00pm")) .
"\n";
?>
Expected result:
----------------
Sat, Jan 1 2011
Sat, Jan 15 2011
Actual result:
--------------
Sat, Jan 8 2011
Sat, Jan 22 2011
--
Edit bug report at http://bugs.php.net/bug.php?id=53539&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53539&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53539&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53539&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53539&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53539&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53539&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53539&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53539&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53539&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53539&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53539&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53539&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53539&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53539&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53539&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53539&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53539&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53539&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53539&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53539&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53539&r=mysqlcfg