| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-09-26 15:46 UTC] iliaa@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
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