ID:               30001
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to