xref: /PHP-5.5/Zend/tests/bug42767.phpt (revision 9a38f301)
1--TEST--
2Bug #42767 (highlight_string() truncates trailing comments)
3--INI--
4highlight.string  = #DD0000
5highlight.comment = #FF8000
6highlight.keyword = #007700
7highlight.default = #0000BB
8highlight.html    = #000000
9--FILE--
10<?php
11highlight_string('<?php /*some comment..');
12?>
13--EXPECT--
14<code><span style="color: #000000">
15<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #FF8000">/*some&nbsp;comment..</span>
16</span>
17</code>
18