This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132701 - Heredoc strings are not supported.
Summary: Heredoc strings are not supported.
Status: CLOSED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-13 13:32 UTC by Victoria Zhukovskaya
Modified: 2008-05-06 14:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2008-04-13 13:32:58 UTC
Heredoc strings are not supported.
Src:
          $str5 = <<<EOD Hi!
EOD;

highlight as suntax error

output
Error: PHP Parse error:  syntax error, unexpected T_SL in D:\Documents and Settings\vz153235.OLYMP\My
Documents\NetBeansProjects\PhpProject1\web\index.php on line 9
exit value = 255

Build #2015 (Apr 12, 2008 4:17:42 PM)
Comment 1 Petr Pisl 2008-04-13 20:28:06 UTC
The heredoc is defined in http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc.

The hereroc syntax starts with <<<. After this operator, an identifier is provided, then a newline. According to the
definition there has to be new line after your EOD identifier. 
Comment 2 Victoria Zhukovskaya 2008-05-06 14:17:03 UTC
I close the issue as  INVALID