FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

PHP heredoc syntax not recognised with nightly?

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
victorhooi



Joined: 15 Sep 2009
Posts: 5

PostPosted: Wed Sep 30, 2009 4:25 am    Post subject: PHP heredoc syntax not recognised with nightly? Reply with 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
View user's profile Send private message
victorhooi



Joined: 15 Sep 2009
Posts: 5

PostPosted: Wed Sep 30, 2009 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Petr Pisl
Posted via mailing list.





PostPosted: Wed Sep 30, 2009 12:21 pm    Post subject: PHP heredoc syntax not recognised with nightly? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB