diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-12-13 20:55:42 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-12-13 20:55:42 +0000 |
commit | 3ce27140dc2a038795dab4e45cd9ea7b77582714 (patch) | |
tree | 6a7d9473ecda20808fa80e7fbf25c9fceb5d425c /Zend/tests/bug35655.phpt | |
parent | 900d49a5533b3fcda99d162ec74723beb291fc82 (diff) | |
download | php-git-3ce27140dc2a038795dab4e45cd9ea7b77582714.tar.gz |
Fixed bug #35655 (whitespace following end of heredoc is lost).
Diffstat (limited to 'Zend/tests/bug35655.phpt')
-rwxr-xr-x | Zend/tests/bug35655.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug35655.phpt b/Zend/tests/bug35655.phpt new file mode 100755 index 0000000000..30f00cb32e --- /dev/null +++ b/Zend/tests/bug35655.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #35655 (whitespace following end of heredoc is lost) +--FILE-- +<?php +$code = ' +<? + $x = <<<EOT +some string +EOT + $y = 2; +?>'; +highlight_string($code); +?> +--EXPECT-- +<code><span style="color: #000000"> +<br /><span style="color: #0000BB"><? <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> |