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 /ext/tokenizer/tests | |
parent | 900d49a5533b3fcda99d162ec74723beb291fc82 (diff) | |
download | php-git-3ce27140dc2a038795dab4e45cd9ea7b77582714.tar.gz |
Fixed bug #35655 (whitespace following end of heredoc is lost).
Diffstat (limited to 'ext/tokenizer/tests')
-rw-r--r-- | ext/tokenizer/tests/bug26463.phpt | 62 |
1 files changed, 39 insertions, 23 deletions
diff --git a/ext/tokenizer/tests/bug26463.phpt b/ext/tokenizer/tests/bug26463.phpt index 7480aa2f59..679ffe3c37 100644 --- a/ext/tokenizer/tests/bug26463.phpt +++ b/ext/tokenizer/tests/bug26463.phpt @@ -14,11 +14,11 @@ DDDD; var_dump(token_get_all($str)); ?> --EXPECTF-- -array(17) { +array(19) { [0]=> array(2) { [0]=> - int(%d) + int(367) [1]=> string(6) "<?php " @@ -26,7 +26,7 @@ array(17) { [1]=> array(2) { [0]=> - int(%d) + int(309) [1]=> string(2) "$x" } @@ -35,7 +35,7 @@ array(17) { [3]=> array(2) { [0]=> - int(%d) + int(371) [1]=> string(6) "<<<DD " @@ -43,7 +43,7 @@ array(17) { [4]=> array(2) { [0]=> - int(%d) + int(307) [1]=> string(13) "jhdsjkfhjdsh " @@ -51,67 +51,83 @@ array(17) { [5]=> array(2) { [0]=> - int(%d) + int(372) [1]=> string(2) "DD" } [6]=> - string(1) "." + array(2) { + [0]=> + int(370) + [1]=> + string(1) " +" + } [7]=> + string(1) "." + [8]=> array(2) { [0]=> - int(%d) + int(315) [1]=> string(2) """" } - [8]=> - string(1) ";" [9]=> + string(1) ";" + [10]=> array(2) { [0]=> - int(%d) + int(370) [1]=> string(1) " " } - [10]=> + [11]=> array(2) { [0]=> - int(%d) + int(309) [1]=> string(2) "$a" } - [11]=> - string(1) "=" [12]=> + string(1) "=" + [13]=> array(2) { [0]=> - int(%d) + int(371) [1]=> string(8) "<<<DDDD " } - [13]=> + [14]=> array(2) { [0]=> - int(%d) + int(307) [1]=> string(13) "jhdsjkfhjdsh " } - [14]=> + [15]=> array(2) { [0]=> - int(%d) + int(372) [1]=> string(4) "DDDD" } - [15]=> - string(1) ";" [16]=> + string(1) ";" + [17]=> + array(2) { + [0]=> + int(370) + [1]=> + string(1) " +" + } + [18]=> array(2) { [0]=> - int(%d) + int(369) [1]=> string(2) "?>" } |