1--TEST-- 2Bug #35655 (whitespace following end of heredoc is lost) 3--INI-- 4highlight.string = #DD0000 5highlight.comment = #FF8000 6highlight.keyword = #007700 7highlight.bg = #FFFFFF 8highlight.default = #0000BB 9highlight.html = #000000 10--FILE-- 11<?php 12$code = ' 13<?php 14 $x = <<<EOT 15some string 16EOT 17 $y = 2; 18?>'; 19highlight_string($code); 20?> 21--EXPECT-- 22<code><span style="color: #000000"> 23<br /><span style="color: #0000BB"><?php<br /> $x </span><span style="color: #007700">= <<<EOT<br /></span><span style="color: #DD0000">some string <br /></span><span style="color: #007700">EOT<br /> </span><span style="color: #0000BB">$y </span><span style="color: #007700">= </span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span> 24</span> 25</code> 26