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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: koan at gmx dot at
New email:
PHP Version: OS:

 

 [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: Sat Nov 27 06:03:14 2021 UTC