#26672 [NEW]: $caljun doesnt resolve when sent the number 16
| From: | joe at nnjconsultants dot com | Date: | Fri, 19 Dec 2003 22:29:15 +0000 |
| Subject: | #26672 [NEW]: $caljun doesnt resolve when sent the number 16 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-52324@lists.php.net to get a copy of this message | ||
From: joe at nnjconsultants dot com
Operating system: I dont know
PHP version: Irrelevant
PHP Bug Type: *Calendar problems
Bug description: $caljun doesnt resolve when sent the number 16
Description:
------------
I have a Redirect PHP script that I use to store urls to report what event
is on a certain day. I have made 12 $identifiers from $caljan through
$caldec for each month. Every month and day works fine except for june
16th and I cant explain it. As you can see from the links provided the
15th and 17th day work just not the 16th day.
Reproduce code:
---------------
http://www.njfop46.com/sample/calredir.php?calmonth=jun&calday=15
http://www.njfop46.com/sample/calredir.php?calmonth=jun&calday=16
http://www.njfop46.com/sample/calredir.php?calmonth=jun&calday=17
$caljun = array(
'index.php', //0
'', //1
Through
'events.php', //15
'events.php', //16
'events.php', //17
Through
'', //30
);
if ($cmon == "jun") { if ($cday << "31" && $cday >>
"0") { if
($caljun[$cday] <> "") { header("Location: $caljun[$cday]"); } } }
Expected result:
----------------
Like I said I want to be redirected to the events page in this example.
The array of everything works except 16.
Actual result:
--------------
The result that I get is the same one as when someone goes to a page when
an event doesnt exist ie:
http://www.njfop46.com/sample/calredir.php?calmonth=jan&calday=1
--
Edit bug report at http://bugs.php.net/?id=26672&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26672&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26672&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26672&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26672&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26672&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26672&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26672&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26672&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26672&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26672&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26672&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26672&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26672&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26672&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26672&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26672&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26672&r=float