NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
php5 syntax highlighting


Joined: 24 Oct 2008
Posts: 6
Reply with quote
I have been developing in php4. recently I began upgrading my code to php5. However in phpEd 5.2 I have changed all settings under "settings" that I could find to php5 and yet when I declare a function static (i.e. static function() { //some code here } ) , phpEd highlights the "static" keyword as an error. What am I doing wrong?
View user's profileFind all posts by kryptedSend private message


Joined: 10 Feb 2007
Posts: 48
Reply with quote
When you hover the mouse over the squiggly red line what is the error?
View user's profileFind all posts by StorymanSend private message


Joined: 24 Oct 2008
Posts: 6
Reply with quote
parse error, expecting 'T4_OLD_FUNCTION' or 'T_FUNCTION' or 'T_VAR' or "}" Unexpected 'static'
View user's profileFind all posts by kryptedSend private message
Re: php5 syntax highlighting


Joined: 28 Oct 2008
Posts: 1
Reply with quote
krypted wrote:
I have been developing in php4. recently I began upgrading my code to php5. However in phpEd 5.2 I have changed all settings under "settings" that I could find to php5 and yet when I declare a function static (i.e. static function() { //some code here } ) , phpEd highlights the "static" keyword as an error. What am I doing wrong?

Hi. I also has such question, and found this topic.
This one help for me:
Change file associations in settings - move *.php file types from PHP4 to PHP5:


Sorry for my english.
View user's profileFind all posts by underSend private message


Joined: 24 Oct 2008
Posts: 6
Reply with quote
that worked like a charm. Thank you!!!!!
View user's profileFind all posts by kryptedSend private message
php5 syntax highlighting
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