#50635 [Opn->Bgs]: Parse error occures if '?>' is put into a single-string comment
| From: | jani@php.net | Date: | Sat, 02 Jan 2010 16:28:22 +0000 |
| Subject: | #50635 [Opn->Bgs]: Parse error occures if '?>' is put into a single-string comment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-146281@lists.php.net to get a copy of this message | ||
ID: 50635
Updated by: jani@php.net
Reported By: sergio at js-client dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
PHP Version: 5.3.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2010-01-02 14:14:22] sergio at js-client dot com
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 this bug report at http://bugs.php.net/?id=50635&edit=1