NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
a question about syntax checking


Joined: 19 Dec 2006
Posts: 94
Reply with quote
I notice this small little bug when trying to debug my code. I not sure if it is or is not a bug, I would consider it one but it will not telling me there are any syntax error if i don't close the php tage. this will not show an red bar on the right when i think it should:

Code:

<?php
print("TEST");
View user's profileFind all posts by basireSend private message


Joined: 08 Feb 2007
Posts: 67
Reply with quote
There is not a syntax error, as far as I know. This code should execute without any problems.
View user's profileFind all posts by nothsaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I agree with nothsa
there is no syntax errors in the code.

print is a function,
terminating php tag is not required.
What else did you mean?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 19 Dec 2006
Posts: 94
Reply with quote
well that is wierd, i was getting an $end error from php and i had all my brackets and stuff close the way they should and the when i added the ?> the error went away but you are right that the closing ?> is not needed.
View user's profileFind all posts by basireSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
If you get an unexpected error, please post a complete example.
TIA

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
a question about syntax checking
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic