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