mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
21 lines
319 B
PHP
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
|