diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-25 18:57:26 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-25 18:57:26 +0000 |
| commit | 0688205940b47e118ce95d3ad7e9e05d616678fe (patch) | |
| tree | 7038ea5c79d6c6d347e6503d7daa9d818ba3bf81 /tests/strings | |
| parent | 12c7ae9f555e0b2d58a44d1a998a3ab002f760a7 (diff) | |
| download | php-git-0688205940b47e118ce95d3ad7e9e05d616678fe.tar.gz | |
Fixed Bug #26703 (Certain characters inside strings incorrectly treated as
keywords). Original patch by vrana@php.net.
Diffstat (limited to 'tests/strings')
| -rw-r--r-- | tests/strings/bug26703.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/strings/bug26703.phpt b/tests/strings/bug26703.phpt new file mode 100644 index 0000000000..c86e1759d5 --- /dev/null +++ b/tests/strings/bug26703.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #26703 (Certain characters inside strings incorrectly treated as keywords) +--INI-- +highlight.string=#DD0000 +highlight.comment=#FF9900 +highlight.keyword=#007700 +highlight.bg=#FFFFFF +highlight.default=#0000BB +highlight.html=#000000 +--FILE-- +<?php + highlight_string('<?php echo "foo[] $a \n"; ?>'); +?> +--EXPECT-- +<code><font color="#000000"> +<font color="#0000BB"><?php </font><font color="#007700">echo </font><font color="#DD0000">"foo[] $a \n"</font><font color="#007700">; </font><font color="#0000BB">?></font> +</font> +</code> |
