#16945 [Opn->Bgs]: bug in syntax highlight
| From: | iliaa@php.net | Date: | Sat, 17 Aug 2002 18:33:01 +0000 |
| Subject: | #16945 [Opn->Bgs]: bug in syntax highlight | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17139@lists.php.net to get a copy of this message | ||
ID: 16945
Updated by: iliaa@php.net
Reported By: goba@php.net
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: win2k
PHP Version: 4.1.2
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-05-01 10:23:21] goba@php.net
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 this bug report at http://bugs.php.net/?id=16945&edit=1