php.net |  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:
MUST BE VALID
Solve the problem:
1 + 10 = ?
Subscribe to this entry?

 
 [2003-03-05 06:49 UTC] koan at gmx dot at
Date/Calc.php

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
638c638
<         return(Date_Calc::nextDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",true));
---
>         return(Date_Calc::nextDayOfWeek($dow,$day,$month,$year,$format,true));
658c658
<         return(Date_Calc::prevDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",true));
---
>         return(Date_Calc::prevDayOfWeek($dow,$day,$month,$year,$format,true));

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-13 15:27 UTC] mj@php.net
This bug has been fixed in CVS and the next release will work as expected.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 06:01:32 2024 UTC