123456789101112131415161718192021222324252627282930313233 |
- --TEST--
- Torture the T_END_NOWDOC rules with variable expansions (nowdoc)
- --FILE--
- <?php
- require_once 'nowdoc.inc';
- $fooledYou = '';
- print <<<'ENDOFNOWDOC'
- {$fooledYou}ENDOFNOWDOC{$fooledYou}
- ENDOFNOWDOC{$fooledYou}
- {$fooledYou}ENDOFNOWDOC
- ENDOFNOWDOC;
- $x = <<<'ENDOFNOWDOC'
- {$fooledYou}ENDOFNOWDOC{$fooledYou}
- ENDOFNOWDOC{$fooledYou}
- {$fooledYou}ENDOFNOWDOC
- ENDOFNOWDOC;
- print "{$x}";
- ?>
- --EXPECT--
- {$fooledYou}ENDOFNOWDOC{$fooledYou}
- ENDOFNOWDOC{$fooledYou}
- {$fooledYou}ENDOFNOWDOC
- {$fooledYou}ENDOFNOWDOC{$fooledYou}
- ENDOFNOWDOC{$fooledYou}
- {$fooledYou}ENDOFNOWDOC
|