ID:               31328
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to