The document contains no data -->BUG!?
| From: | Alexander Mardirossian | Date: | Mon, 06 Nov 2000 13:42:02 +0000 |
| Subject: | The document contains no data -->BUG!? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23882@lists.php.net to get a copy of this message | ||
Hello all,
I think i have found a bug:
I have installed PHP 4.03pl1 on my SuSE Linux 6.4 with Apache 1.3.12 as
DSO. Everithing during the installation was fine.
I wrote a simple program to test that PHP works but it appeared that it
cannot proccess nested loops!?! Here is a chunk of my <BODY> tag:
The following program DOES work:
<TABLE border=1 width=100% height=90% bgcolor="green">
<?php
for ($i=1; $i<=10;$i++) {
echo "<TR>";
$q=1;
// while ((q++)<5) {
echo "<TD>Row Number: $i, Column Number: $q</TD>";
// }
echo "</TR>";
}
?>
</TABLE>
Now...
The following program does NOT work:
<TABLE border=1 width=100% height=90% bgcolor="green">
<?php
for ($i=1; $i<=10;$i++) {
echo "<TR>";
$q=1;
while ((q++)<5) {
echo "<TD>Row Number: $i, Column Number: $q</TD>";
}
echo "</TR>";
}
?>
</TABLE>
Note that Neither FOR, nor WHILE loop worked.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have tested it in both, Netscape 4.75 AND Lynx without success.
Netscape sais "The document contains no data!", Lynx just does not show
anything.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!