highlight_string() 'eats' the unclosed comment
| Bug #42767 | highlight_string() 'eats' the unclosed comment | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2007-09-26 12:20 UTC | Modified: | 2009-05-09 00:46 UTC |
|
||||||||||
| From: | g0rn at mail dot ru | Assigned: | iliaa (profile) | |||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | 5.2.4 | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2007-09-26 12:20 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-09-26 15:46 UTC] iliaa@php.net