summaryrefslogtreecommitdiff
path: root/Zend/tests/bug35655.phpt
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-13 20:55:42 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-13 20:55:42 +0000
commit3ce27140dc2a038795dab4e45cd9ea7b77582714 (patch)
tree6a7d9473ecda20808fa80e7fbf25c9fceb5d425c /Zend/tests/bug35655.phpt
parent900d49a5533b3fcda99d162ec74723beb291fc82 (diff)
downloadphp-git-3ce27140dc2a038795dab4e45cd9ea7b77582714.tar.gz
Fixed bug #35655 (whitespace following end of heredoc is lost).
Diffstat (limited to 'Zend/tests/bug35655.phpt')
-rwxr-xr-xZend/tests/bug35655.phpt18
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">&lt;?&nbsp;<br />&nbsp;&nbsp;$x&nbsp;</span><span style="color: #007700">=&nbsp;&lt;&lt;&lt;EOT<br /></span><span style="color: #0000BB">some&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">EOT<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
+</span>
+</code>