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