|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22548 Date/Calc.php, wrong arguments in call of nextDayOfWeek and prevDayOfWeek
Submitted: 2003-03-05 06:49 UTC Modified: 2003-03-13 15:27 UTC
From: koan at gmx dot at Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.1 OS: Debian Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
16 + 12 = ?
Subscribe to this entry?

 [2003-03-05 06:49 UTC] koan at gmx dot at

arguments in function calls (nextDayOfWeek and prevDayOfWeek) in lines 638, 658 always assigned to ""

seems to be a "Copy & Paste"-related error ;-)

Andreas Kossmeier

RCS file: /repository/pear/Date/Date/Calc.php,v
retrieving revision 1.9
diff -r1.9 Calc.php
<         return(Date_Calc::nextDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",true));
>         return(Date_Calc::nextDayOfWeek($dow,$day,$month,$year,$format,true));
<         return(Date_Calc::prevDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",true));
>         return(Date_Calc::prevDayOfWeek($dow,$day,$month,$year,$format,true));


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-13 15:27 UTC]
This bug has been fixed in CVS and the next release will work as expected.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 06:03:37 2021 UTC