php-src/Zend/tests/heredoc_011.phpt
2008-02-12 09:28:30 +00:00

21 lines
319 B
PHP

--TEST--
Heredocs can NOT be used as static scalars.
--FILE--
<?php
require_once 'nowdoc.inc';
class e {
const E = <<<THISMUSTERROR
If you see this, something's wrong.
THISMUSTERROR;
};
print e::E . "\n";
?>
--EXPECTF--
Parse error: syntax error, unexpected T_START_HEREDOC in %sheredoc_011.php on line 8