note 64985 added to function.highlight-string

From: Date: Mon, 24 Apr 2006 09:27:26 +0000
Subject: note 64985 added to function.highlight-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-109307@lists.php.net to get a copy of this message
I have Apache 2.0.55 and am running PHP 5.0.5. I recently came into trouble with the way highlight string was parsing the string properly. I spent two days trying chunks of code after code. No matter what I tried, the string was just not colouring properly and the output was completely random - sometimes it would work, sometimes it wouldn't. Sometimes the html characters would decode, other times they wouldn't. It was truely annoying and I hope no one goes through it because the worst bit of all was that it was undocumented I couldn't find anything anywhere... The solution? Restart the server!! I've posted this here as I discovered the problem with the highlight_string() function but I'm sure it can apply to many other places. Now it works perfect. ---- Server IP: 85.116.0.130 Probable Submitter: 82.25.46.116 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.highlight-string.php Edit -- http://master.php.net/note/edit/64985 Del: integrated -- http://master.php.net/note/delete/64985/integrated Del: useless -- http://master.php.net/note/delete/64985/useless Del: bad code -- http://master.php.net/note/delete/64985/bad+code Del: spam -- http://master.php.net/note/delete/64985/spam Del: non-english -- http://master.php.net/note/delete/64985/non-english Del: in docs -- http://master.php.net/note/delete/64985/in+docs Del: other reasons-- http://master.php.net/note/delete/64985 Reject -- http://master.php.net/note/reject/64985 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109307) next »