mirror of
https://github.com/php/php-src.git
synced 2024-10-09 10:37:29 +00:00
20 lines
337 B
Plaintext
20 lines
337 B
Plaintext
|
--TEST--
|
||
|
highlight_string() handling of heredoc
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$str = '
|
||
|
$x=<<<DD
|
||
|
jhdsjkfhjdsh
|
||
|
DD
|
||
|
."";
|
||
|
$a=<<<DDDD
|
||
|
jhdsjkfhjdsh
|
||
|
DDDD;
|
||
|
';
|
||
|
highlight_string($str);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
<code><font color="#000000">
|
||
|
<br />$x=<<<DD<br />jhdsjkfhjdsh<br />DD<br />."";<br />$a=<<<DDDD<br />jhdsjkfhjdsh<br />DDDD;<br /></font>
|
||
|
</code>
|