#30001 [Opn->Bgs]: problem in //
| From: | pollita@php.net | Date: | Mon, 06 Sep 2004 17:19:04 +0000 |
| Subject: | #30001 [Opn->Bgs]: problem in // | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65834@lists.php.net to get a copy of this message | ||
ID: 30001
Updated by: pollita@php.net
Reported By: mydwin at msn dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows 2003 enterprise
PHP Version: 5.0.1
New Comment:
Because that's intended behavior.
http://www.php.net/manual/en/language.basic-syntax.comments.php
Previous Comments:
------------------------------------------------------------------------
[2004-09-06 18:04:19] mydwin at msn dot com
Description:
------------
I try this code
it seem that ?> works in // line
why ?
after this.
I try the same code but using /* */ instead //
it works find and get the right result.
Reproduce code:
---------------
<xmp><?php
$str = 'gogo<hr>cc<br>test';
// $str = '/(.*?)(<\/?.*?>
echo $str;
?>
Expected result:
----------------
gogo<hr>cc<br>test
Actual result:
--------------
echo $str;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30001&edit=1