![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Nowdocs CAN be used as static scalars. 3: --FILE-- 4: <?php 5: 6: require_once 'nowdoc.inc'; 7: 8: class e { 9: 10: const E = <<<'THISMUSTNOTERROR' 11: If you DON'T see this, something's wrong. 12: THISMUSTNOTERROR; 13: 14: }; 15: 16: print e::E . "\n"; 17: 18: ?> 19: --EXPECTF-- 20: If you DON'T see this, something's wrong.