mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
18 lines
450 B
PHP
18 lines
450 B
PHP
--TEST--
|
|
Bug #42767 (highlight_string() truncates trailing comments)
|
|
--INI--
|
|
highlight.string = #DD0000
|
|
highlight.comment = #FF8000
|
|
highlight.keyword = #007700
|
|
highlight.default = #0000BB
|
|
highlight.html = #000000
|
|
--FILE--
|
|
<?php
|
|
highlight_string('<?php /*some comment..');
|
|
?>
|
|
--EXPECT--
|
|
<code><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php </span><span style="color: #FF8000">/*some comment..</span>
|
|
</span>
|
|
</code>
|