mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
af316021e8
The full patch is available as: http://php.net/~helly/php-re2c-5.3-20080316.diff.txt This is against php-re2c repository version 98 An older patch against version 97 is available under: http://php.net/~helly/php-re2c-97-20080316.diff.txt
19 lines
478 B
PHP
19 lines
478 B
PHP
--TEST--
|
|
Bug #42767 (highlight_string() truncates trailing comments)
|
|
--INI--
|
|
highlight.string = #DD0000
|
|
highlight.comment = #FF8000
|
|
highlight.keyword = #007700
|
|
highlight.bg = #FFFFFF
|
|
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>
|