| View previous topic :: View next topic |
| Author |
Message |
victorhooi
Joined: 15 Sep 2009 Posts: 5
|
Posted: Wed Sep 30, 2009 4:25 am Post subject: PHP heredoc syntax not recognised with nightly? |
|
|
heya,
I'm trying to use some PHP code with an echo function which uses heredoc syntax. E.g.:
| Code: | <?php
echo <<<_END
<form ....
</form>
_END;
?> |
The problem is, NetBeans doesn't seem to recognise it, and treats all the code after that as part of the echo statement as well, which basically breaks syntax checking for the rest of the document.
I noticed here http://wiki.netbeans.org/FeatureListEAPHP that they mention "support for php HEREDOC string".
Also, here, http://blogs.sun.com/branajam/entry/eight_reasons_to_migrate_to in a blog post about Netbeans 6.5, they also mention it having heredoc support.
Finally, there's a bug report here http://www.netbeans.org/issues/show_bug.cgi?id=134607 which mentioned it was fixed in trunk (2008).
I'm using Netbeans nightly. Does anybody happen to know if this is an issue with my build/config, or whether it's a regression of some sort?
Cheers,
Victor |
|
| Back to top |
|
 |
victorhooi
Joined: 15 Sep 2009 Posts: 5
|
Posted: Wed Sep 30, 2009 4:27 am Post subject: |
|
|
heya,
Sorry, accidental double-post - if a mod sees this, could they delete one of the two (they're both identical posts).
Cheers,
Victor |
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Wed Sep 30, 2009 12:21 pm Post subject: PHP heredoc syntax not recognised with nightly? |
|
|
Hi,
it works for me still. Check, whether there is not space at the end of
line echo <<<_END
Regards,
Petr
| Quote: | heya,
I'm trying to use some PHP code with an echo function which uses heredoc syntax. E.g.:
Code:
<?php
echo <<<_END
<form ....
</form>
_END;
?>
The problem is, NetBeans doesn't seem to recognise it, and treats all the code after that as part of the echo statement as well, which basically breaks syntax checking for the rest of the document.
I noticed here http://wiki.netbeans.org/FeatureListEAPHP that they mention "support for php HEREDOC string".
Also, here, http://blogs.sun.com/branajam/entry/eight_reasons_to_migrate_to in a blog post about Netbeans 6.5, they also mention it having heredoc support.
Finally, there's a bug report here http://www.netbeans.org/issues/show_bug.cgi?id=134607 which mentioned it was fixed in trunk (2008).
I'm using Netbeans nightly. Does anybody happen to know if this is an issue with my build/config, or whether it's a regression of some sort?
Cheers,
Victor
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|