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
 [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-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 17 10:03:37 2021 UTC