#22548 [NEW]: Date/Calc.php, wrong arguments in call of nextDayOfWeek and prevDayOfWeek
| From: | koan at gmx dot at | Date: | Wed, 05 Mar 2003 12:49:44 +0000 |
| Subject: | #22548 [NEW]: Date/Calc.php, wrong arguments in call of nextDayOfWeek and prevDayOfWeek | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14081@lists.php.net to get a copy of this message | ||
From: koan at gmx dot at
Operating system: Debian Linux
PHP version: 4.3.1
PHP Bug Type: PEAR related
Bug description: Date/Calc.php, wrong arguments in call of nextDayOfWeek and prevDayOfWeek
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));
--
Edit bug report at http://bugs.php.net/?id=22548&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22548&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22548&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22548&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22548&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22548&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22548&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22548&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22548&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22548&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22548&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22548&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22548&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22548&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22548&r=gnused