php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33306 // or # Comment including %> crashes !
Submitted: 2005-06-10 19:34 UTC Modified: 2005-06-11 15:27 UTC
From: rob at span dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.4 OS: Win2003 / Apache2
Private report: No CVE-ID: None
 [2005-06-10 19:34 UTC] rob at span dot com
Description:
------------
PHP5 doesn't like comments including %> 
PHP4 was happy enough with them...
Do you know how hard it is to search for '%>' ?

Reproduce code:
---------------
// Insure ?9<?600 1.5%>?600 
# Insure ?9<?600 1.5%>?600 

but

/* Insure ?9<?600 1.5%>?600 */


Expected result:
----------------
nothing !!!

Actual result:
--------------
Parse error: syntax error, unexpected $end in blah.php on line 193

i.e. after the ?> on the final line

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-11 15:27 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 21:01:28 2024 UTC