mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
26 lines
901 B
PHP
Executable File
26 lines
901 B
PHP
Executable File
--TEST--
|
|
Bug #35655 (whitespace following end of heredoc is lost)
|
|
--INI--
|
|
highlight.string = #DD0000
|
|
highlight.comment = #FF8000
|
|
highlight.keyword = #007700
|
|
highlight.bg = #FFFFFF
|
|
highlight.default = #0000BB
|
|
highlight.html = #000000
|
|
--FILE--
|
|
<?php
|
|
$code = '
|
|
<?php
|
|
$x = <<<EOT
|
|
some string
|
|
EOT
|
|
$y = 2;
|
|
?>';
|
|
highlight_string($code);
|
|
?>
|
|
--EXPECT--
|
|
<code><span style="color: #000000">
|
|
<br /><span style="color: #0000BB"><?php<br /> $x </span><span style="color: #007700">= <<<EOT<br /></span><span style="color: #0000BB">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>
|
|
</span>
|
|
</code>
|