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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rob at span dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 21 22:00:03 2025 UTC