#42767 [Opn->Asn]: highlight_string() 'eats' the unclosed comment

From: Date: Wed, 26 Sep 2007 15:24:27 +0000
Subject: #42767 [Opn->Asn]: highlight_string() 'eats' the unclosed comment
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117873@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: Open +Status: Assigned Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.2.4 -Assigned To: +Assigned To: iliaa 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

« previous php.bugs (#117873) next »