ID: 14042 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Compile Failure Operating System: RedHat Linux 7.2 PHP Version: 4.0.6 New Comment:
You're messing with the ASP-tags. The line echo "<ta.... contains %> which jumps out of PHP-mode. Then, if EOF has been reached, the brackets haven't been closed, which results in that parse-error. So, edit your php.ini and disbable asp-tags or use width="50%"> (which is better anyway). Previous Comments: ------------------------------------------------------------------------ [2001-11-13 11:47:41] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14042&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]