php-src/Zend/tests/heredoc_011.phpt
Dmitry Stogov ef5f3cfdf2 . Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt)
. Optimized interpolated strings to use one less opcode. (Matt)
2008-07-26 15:31:38 +00:00

21 lines
290 B
PHP

--TEST--
STATIC heredocs CAN be used as static scalars.
--FILE--
<?php
require_once 'nowdoc.inc';
class e {
const E = <<<THISMUSTNOTERROR
If you DON'T see this, something's wrong.
THISMUSTNOTERROR;
};
print e::E . "\n";
?>
--EXPECT--
If you DON'T see this, something's wrong.