#42767 [Asn->Csd]: highlight_string() 'eats' the unclosed comment
| From: | iliaa@php.net | Date: | Wed, 26 Sep 2007 15:46:34 +0000 |
| Subject: | #42767 [Asn->Csd]: highlight_string() 'eats' the unclosed comment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117875@lists.php.net to get a copy of this message | ||
ID: 42767
Updated by: iliaa@php.net
Reported By: g0rn at mail dot ru
-Status: Assigned
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 5.2.4
Assigned To: iliaa
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-09-26 12:20:11] g0rn at mail dot ru
Description:
------------
When I use highlight_string() on unclosed /* comment it doesn't returns
anything, after this comment.
Reproduce code:
---------------
highlight_string('<?php /*some comment..');
highlight_string('<?php
some code
some code
some code
/* some comment..');
Expected result:
----------------
In first example it should return:
<?php /*some comment..
In second:
<?php
some code
some code
some code
/* some comment..
Actual result:
--------------
In first example it returns:
<?php
In second it returns:
<?php
some code
some code
some code
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42767&edit=1