Bug #15650: function highlight_string() returns string
| From: | rein at velt dot net | Date: | Wed, 20 Feb 2002 22:57:55 +0000 |
| Subject: | Bug #15650: function highlight_string() returns string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-689@lists.php.net to get a copy of this message | ||
From: rein@velt.net
Operating system:
PHP version: 4.1.1
PHP Bug Type: Feature/Change Request
Bug description: function highlight_string() returns string
At this moment (php4.1.1) the function "highlight_string" has the
following
syntax:
[quote]
bool highlight_string ( string str)
This function prints out a syntax highlighted version of str using the
colors defined in the built-in syntax highlighter for PHP. Returns TRUE
or
FALSE.
[/quote]
The function will be more flexible if it returns a string (with
highlights)
and nothing is printed directly.
str highlight_string ( string str)
This function returns a string containing a syntax highted version of str
using the colors defined in the built-in syntax highlighter for PHP.
Returnes a string with syntax-highlighted html
Reference: http://lxr.php.net/source/ZendEngine2/zend_highlight.c#84
--
Edit bug report at http://bugs.php.net/?id=15650&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15650&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15650&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15650&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15650&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15650&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15650&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15650&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15650&r=submittedtwice