xref: /PHP-8.3/Zend/tests/bug42767.phpt (revision f907a009)
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<pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #FF8000">/*some comment..</span></code></pre>
15