summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_011.phpt
blob: 6a1d5a00db95fd34e3a3cc5db3ed524b7bfdd3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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