php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16945 bug in syntax highlight
Submitted: 2002-05-01 10:23 UTC Modified: 2002-08-17 14:33 UTC
From: goba@php.net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.1.2 OS: win2k
Private report: No CVE-ID: None
 [2002-05-01 10:23 UTC] 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);

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-17 14:33 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Aug 18 22:01:28 2024 UTC