|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-03 13:06 UTC] sniper@php.net
[2005-04-04 01:23 UTC] 000005 at gmail dot com
[2005-04-05 14:20 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 25 16:00:02 2025 UTC |
Description: ------------ Trying to initialize a member variable using heredoc notation produces a compiler error: Parse error: parse error, unexpected T_START_HEREDOC in /.../foo.php on line 6 Reproduce code: --------------- <? class foo { public $bar = <<<END blah blah blah END; } ?> Expected result: ---------------- The member variable $bar to be assigned "blah blah blah". Actual result: -------------- Parse error: parse error, unexpected T_START_HEREDOC in /.../foo.php on line 6