diff options
author | Felipe Pena <felipe@php.net> | 2008-04-05 23:13:21 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-04-05 23:13:21 +0000 |
commit | cdf42e76381a1684d0a29ebd90c94c57f385203e (patch) | |
tree | 0a835299ae37b7480ad8d7fe92ceb024771e765b /Zend/tests/heredoc_013.phpt | |
parent | 99286928ea9001d6564a5110f596860fa535e037 (diff) | |
download | php-git-cdf42e76381a1684d0a29ebd90c94c57f385203e.tar.gz |
MFB:
- Allow HEREDOC syntax with double quotes [DOC]
(http://wiki.php.net/rfc/heredoc-with-double-quotes)
Diffstat (limited to 'Zend/tests/heredoc_013.phpt')
-rw-r--r-- | Zend/tests/heredoc_013.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/heredoc_013.phpt b/Zend/tests/heredoc_013.phpt new file mode 100644 index 0000000000..b2a6673469 --- /dev/null +++ b/Zend/tests/heredoc_013.phpt @@ -0,0 +1,12 @@ +--TEST-- +Heredoc with double quotes and wrong prefix +--FILE-- +<?php +$test = "foo"; +$var = prefix<<<"MYLABEL" +test: $test +MYLABEL; +echo $var; +?> +--EXPECTF-- +Parse error: syntax error, unexpected T_START_HEREDOC in %sheredoc_013.php on line %d |