|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-13 12:01 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 26 10:00:01 2025 UTC |
If I run the following script <?php if (($rows < 1)) { echo "hi ho\n"; // echo "<table border=1 width=50%>"; } ?> In PHP 4.0.6 (on RedHat 7.2) then I get a parse error like so ------------------------------------------------------- X-Powered-By: PHP/4.0.6 Content-type: text/html <br> <b>Parse error</b>: parse error in <b>parsetest.php</b> on line <b>10</b><br> ------------------------------------------------------- Whereas if I run it on PHP 4.0.4 (from RedHat 7.1) I get success like so. ------------------------------------------------------- X-Powered-By: PHP/4.0.4pl1 Content-type: text/html hi ho ------------------------------------------------------- I would expect both to work okay. The problem goes away if I either delete the comment line or delete the if statement. I'll also report this at RedHat. This is not urgent for me since the work around is obvious (delete the comment line) and unlikely to have any serious effect on the efficiency of my program. However, I'll check back here to answer any further queries. Best Regards and thanks for all the support and help.. Michael De La Rue.