From:             josh dot helzer at gmail dot com
Operating system: Linux 2.4.26-gentoo-r7
PHP version:      5.2.1
PHP Bug Type:     Feature/Change Request
Bug description:  Behavior of PI end in single-line comment

Description:
------------
When a processing instruction end (PIE), i.e., "?>", is encountered in a
single-line comment, the PHP parser should handle it more intelligently,
thus:

If the PIE would, when outside single-line comment context (SLCC), not
mark the end of the current PHP code block (e.g., if it occurred inside a
string literal), it should not, when inside SLCC, mark the end of the code
block.

---

The above represents a compromise suggestion.  I feel the semantics of
comments ought to be the same as those in, e.g., C, Perl; i.e., comment
text should be naively stripped from the input stream seen by the parser.


-- 
Edit bug report at http://bugs.php.net/?id=40832&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40832&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40832&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40832&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40832&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40832&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40832&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40832&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40832&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40832&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40832&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40832&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40832&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40832&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40832&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40832&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40832&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40832&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40832&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40832&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40832&r=mysqlcfg

Reply via email to