Bug #16945: bug in syntax highlight
| From: | goba@php.net | Date: | Wed, 01 May 2002 14:23:22 +0000 |
| Subject: | Bug #16945: bug in syntax highlight | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-6642@lists.php.net to get a copy of this message | ||
From: goba@php.net
Operating system: win2k
PHP version: 4.1.2
PHP Bug Type: Unknown/Other Function
Bug description: bug in syntax highlight
While generating the new CHM highlights I came across a bug. Seems like the
syntax highliter does not like backslashes in strings, or something like
that...
This example was on the preg_match_all() page.
The original source:
preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches);
The output of the highlight:
preg_match_all ("/(<([
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180
w]+)[^>]*>)(.*)(<
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180
/
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180
2>)/", $html, $matches);
--
Edit bug report at http://bugs.php.net/?id=16945&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16945&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16945&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16945&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16945&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16945&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16945&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16945&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16945&r=submittedtwice