xref: /php-src/tests/strings/bug26703.phpt (revision f907a009)
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<pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #007700">echo </span><span style="color: #DD0000">"foo[] </span><span style="color: #0000BB">$a</span><span style="color: #DD0000"> \n"</span><span style="color: #007700">; </span><span style="color: #0000BB">?&gt;</span></code></pre>
15