1--TEST-- 2Torture the T_END_NOWDOC rules with variable expansions (nowdoc) 3--FILE-- 4<?php 5 6require_once 'nowdoc.inc'; 7$fooledYou = ''; 8 9print <<<'ENDOFNOWDOC' 10{$fooledYou}ENDOFNOWDOC{$fooledYou} 11ENDOFNOWDOC{$fooledYou} 12{$fooledYou}ENDOFNOWDOC 13 14ENDOFNOWDOC; 15 16$x = <<<'ENDOFNOWDOC' 17{$fooledYou}ENDOFNOWDOC{$fooledYou} 18ENDOFNOWDOC{$fooledYou} 19{$fooledYou}ENDOFNOWDOC 20 21ENDOFNOWDOC; 22 23print "{$x}"; 24 25?> 26--EXPECT-- 27{$fooledYou}ENDOFNOWDOC{$fooledYou} 28ENDOFNOWDOC{$fooledYou} 29{$fooledYou}ENDOFNOWDOC 30{$fooledYou}ENDOFNOWDOC{$fooledYou} 31ENDOFNOWDOC{$fooledYou} 32{$fooledYou}ENDOFNOWDOC 33