mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
21 lines
286 B
PHP
21 lines
286 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.
|