diff options
Diffstat (limited to 'Zend/tests/flexible-heredoc-complex-test2.phpt')
-rw-r--r-- | Zend/tests/flexible-heredoc-complex-test2.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/flexible-heredoc-complex-test2.phpt b/Zend/tests/flexible-heredoc-complex-test2.phpt new file mode 100644 index 0000000000..d585e4b476 --- /dev/null +++ b/Zend/tests/flexible-heredoc-complex-test2.phpt @@ -0,0 +1,27 @@ +--TEST-- +Flexible heredoc syntax complex test 2: interpolated nested heredocs +with the same delimiter name +--FILE-- +<?php + +$a = 'b'; +${"b\nb\n d"} = 'b'; + +var_dump(<<<DOC1 + a + ${<<<DOC1 + b + ${<<<DOC1 + a + DOC1} + d + DOC1 + } + c + DOC1); + +?> +--EXPECT-- +string(5) "a +b +c" |