From:             kevin_tom at hotmail dot com
Operating system: Linux 6.2
PHP version:      4.3.8
PHP Bug Type:     Scripting Engine problem
Bug description:  Parser Error under Apache

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 bug report at http://bugs.php.net/?id=31328&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31328&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31328&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31328&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31328&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31328&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31328&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31328&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31328&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31328&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31328&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31328&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31328&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31328&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31328&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31328&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31328&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31328&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31328&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31328&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31328&r=mysqlcfg

Reply via email to