xref: /PHP-7.4/tests/strings/bug26703.phpt (revision 9a38f301)
1--TEST--
2Bug #26703 (Certain characters inside strings incorrectly treated as keywords)
3--INI--
4highlight.string=#DD0000
5highlight.comment=#FF9900
6highlight.keyword=#007700
7highlight.default=#0000BB
8highlight.html=#000000
9--FILE--
10<?php
11	highlight_string('<?php echo "foo[] $a \n"; ?>');
12?>
13--EXPECT--
14<code><span style="color: #000000">
15<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"foo[]&nbsp;</span><span style="color: #0000BB">$a</span><span style="color: #DD0000">&nbsp;\n"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;</span>
16</span>
17</code>
18