#30001 [Bgs]: problem in //
| From: | mydwin at msn dot com | Date: | Tue, 07 Sep 2004 16:44:43 +0000 |
| Subject: | #30001 [Bgs]: problem in // | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65879@lists.php.net to get a copy of this message | ||
ID: 30001
User updated by: mydwin at msn dot com
Reported By: mydwin at msn dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows 2003 enterprise
PHP Version: 5.0.1
New Comment:
Well ..
I see.
just like javascript
<script>
//</script>ff
</script>
Previous Comments:
------------------------------------------------------------------------
[2004-09-06 19:18:45] pollita@php.net
Because that's intended behavior.
http://www.php.net/manual/en/language.basic-syntax.comments.php
------------------------------------------------------------------------
[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