#50635 [NEW]: Parse error occures if '?>' is put into a single-string comment
| From: | sergio at js-client dot com | Date: | Sat, 02 Jan 2010 14:14:22 +0000 |
| Subject: | #50635 [NEW]: Parse error occures if '?>' is put into a single-string comment | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-146279@lists.php.net to get a copy of this message | ||
From: sergio at js-client dot com
Operating system:
PHP version: 5.3.1
PHP Bug Type: *General Issues
Bug description: Parse error occures if '?>' is put into a single-string comment
Description:
------------
Parse error (as unexpected $end) occures if '?>' is put into a
single-string comment
Reproduce code:
---------------
<?php
function comments_test() {
//?>
//preg_match_all('~(?>\s)=~s', $str);
}
?>
Expected result:
----------------
No parsing errors
Actual result:
--------------
PHP Parse error: syntax error, unexpected $end in /Users/apple/serg.php
on line 6
--
Edit bug report at http://bugs.php.net/?id=50635&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50635&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50635&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50635&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50635&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50635&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50635&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50635&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50635&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50635&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50635&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50635&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50635&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50635&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50635&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50635&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50635&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50635&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50635&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50635&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50635&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50635&r=mysqlcfg