3.0.9->3.0.11 Bug. How to find problem?
| From: | Robert Macaulay | Date: | Fri, 02 Jul 1999 19:03:39 +0000 |
| Subject: | 3.0.9->3.0.11 Bug. How to find problem? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8007@lists.php.net to get a copy of this message | ||
After I upgraded from 9 to 11, my php script stopped functioning
correctly, Since we are in a production environment, I had to drop back.
I looked at where it stopped running, here is the code. Cant see any
problems, and this works with v3.0.9
for($i=0; $i<$weeksToDisplay; $i++){
$font_color = "#FFFF00";
$dummy=$numberz[$qtyAvailRow][$i];
if($dummy < 0){
$font_color = "#F66666";
}
echo "<td
bgcolor=\"$font_color\"align=right><b>$dummy</td>\n";
}
echo "</tr>\n";
with $weeksToDisplay=6, $qtyAvailRow=6, it stops after 4 iterations
through it. HTML that came out looks like this.
<td bgcolor="#FFFF00" align=right><b>77598</td>
<td bgcolor="#FFFF00" align=right><b>92247</td>
<td bgcolor="#F66666" align=right><b>-33818</td>
<td bgcolor="#FFFF00" align=right><b>120520</td>
No error, no warning, no clue.
Im at a loss here. the $numberz array is a multi-dimensional array
cleanly initialized to 0 at the start. This seems to be something broken
between v9 and v11. If anyone can help me put php in "debug" mode, I'd
send in something usefull to whoever can work their magic here. Thanks
Can you reply to me, as well as the list. Im not subscribed here. Thanks
Robert