You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (JIRA)" <ji...@apache.org> on 2018/10/26 15:53:00 UTC
[jira] [Commented] (NETBEANS-1563) Error while parsing HEREDOC
[ https://issues.apache.org/jira/browse/NETBEANS-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16665334#comment-16665334 ]
Junichi Yamamoto commented on NETBEANS-1563:
--------------------------------------------
Thanks for reporting it!
The first example has no error.
Errors are shown with the second example.
It seems that `\$variable` is not checked correctly, maybe.
> Error while parsing HEREDOC
> ---------------------------
>
> Key: NETBEANS-1563
> URL: https://issues.apache.org/jira/browse/NETBEANS-1563
> Project: NetBeans
> Issue Type: Bug
> Components: php - Editor
> Affects Versions: 10.0
> Reporter: Los Vitaly
> Assignee: Junichi Yamamoto
> Priority: Blocker
> Attachments: heredoc.png, heredoc1.png
>
>
> Reproducible code:
> {code:java}
> <?php
> $code = <<<EOF
> if(!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String after: ]
> break;
> }
> EOF;
> {code}
> Same error in Laravel project in vendor directory. Full path
> /var/www/html/laravel/vendor/symfony/routing/Matcher/Dumper/PhpMatcherDumper.php
> And the same errors in Composer library
> {code:java}
> $code .= <<<EOF
> default:
> \$routes = array(
> {$this->indent($default, 4)} );
> if (!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String after: ]
> break;
> }
> list(\$ret, \$requiredHost, \$requiredMethods, \$requiredSchemes) = \$routes[\$pathinfo];
> {$this->compileSwitchDefault(false, $matchHost)
> }
> EOF;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists