#31328 [Opn->Bgs]: Parser Error under Apache
| From: | derick@php.net | Date: | Tue, 28 Dec 2004 22:09:38 +0000 |
| Subject: | #31328 [Opn->Bgs]: Parser Error under Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71181@lists.php.net to get a copy of this message | ||
ID: 31328
Updated by: derick@php.net
Reported By: kevin_tom at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux 6.2
PHP Version: 4.3.8
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
PHP is run before your browser does the html comments... PHP doesn't
care about the HTML at all and tries to parse your script which has an
error here.
Previous Comments:
------------------------------------------------------------------------
[2004-12-28 22:36:34] kevin_tom at hotmail dot com
Description:
------------
configure command line:
'./configure' '--with-zlib' '--with-mysql=/var/lib/mysql'
'--with-apxs=/usr/sbin/apxs'
'--with-oci8=/u01/app/oracle/product/8.1.7'
'--with-mssql=/usr/local/freetds'
Browser: IE6 & Firefox by far
This is a purely PHP parser problem, I think. It can't determine if the
"{" and "}" inside HTML comment tags.
Problematic codes:
---------------------------------------
Begin of html/php file
These are html codes
<!--
<?}?>
-->
<br>
End of htm file
---------------------------------------
The HTML comment should take privilege over the PHP tag thus these
codes shouldn't generate a problem, but it does.
Error:
Parse error: parse error, unexpected '}'
Reproduce code:
---------------
Begin of html/php file
These are html codes
<!--
<?}?>
-->
<br>
End of htm file
Expected result:
----------------
Begin of html/php file
These are html codes
End of htm file
Actual result:
--------------
Parse error: parse error, unexpected '}' on line 7
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31328&edit=1