Annotation of embedaddon/php/Zend/tests/heredoc_010.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Torture the T_END_HEREDOC rules with variable expansions (heredoc)
! 3: --FILE--
! 4: <?php
! 5:
! 6: require_once 'nowdoc.inc';
! 7: $fooledYou = '';
! 8:
! 9: print <<<ENDOFHEREDOC
! 10: {$fooledYou}ENDOFHEREDOC{$fooledYou}
! 11: ENDOFHEREDOC{$fooledYou}
! 12: {$fooledYou}ENDOFHEREDOC
! 13:
! 14: ENDOFHEREDOC;
! 15:
! 16: $x = <<<ENDOFHEREDOC
! 17: {$fooledYou}ENDOFHEREDOC{$fooledYou}
! 18: ENDOFHEREDOC{$fooledYou}
! 19: {$fooledYou}ENDOFHEREDOC
! 20:
! 21: ENDOFHEREDOC;
! 22:
! 23: print "{$x}";
! 24:
! 25: ?>
! 26: --EXPECT--
! 27: ENDOFHEREDOC
! 28: ENDOFHEREDOC
! 29: ENDOFHEREDOC
! 30: ENDOFHEREDOC
! 31: ENDOFHEREDOC
! 32: ENDOFHEREDOC
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>