Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7025757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:01:15+00:00 2026-05-28T00:01:15+00:00

Please tell me I’m missing something obvious here. I am getting a syntax error

  • 0

Please tell me I’m missing something obvious here.

I am getting a syntax error for the code:

private $crlf = chr(13).chr(10);

It’s complaining about unfinished class declarations and an unexpected (.

I assumed this may be due to it being a function call (do the return values resolve at compile time?) after reading through http://www.php.net/manual/en/language.oop5.properties.php.

But then I notice in example 1 on the above link the line

public $var4 = self::myStaticMethod();

Which still generates syntax errors for because if the bracket.

Is this just an Aptana issue? If so, can anyone point me toward modifying the error highlighting in Aptana v2.0.5?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:01:15+00:00Added an answer on May 28, 2026 at 12:01 am

    This is not a mistake by Aptana Studio; it’s really a syntax error in PHP. Indeed, when declaring class members, you can’t assign the return values of function or method calls to them, because function calls cannot be evaluated at compile time.

    If you try to run your script in a browser, PHP will spit a parse error as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

please tell me where is leak in this code... //here I did video with
please tell me what invalidateList(); function does? i have one line of code, in
Please tell me why i am getting ClassCastException in this case I have type
Please tell me the difference between stack and heap with respect to below code
please tell me theres a way around this... $my_var = 'hello'; class Test{ private
please tell me how to change this access code so that radio buttons are
Please tell me if this is correct. In my error handler, I need to
Please tell me whats wrong with this c# code.. public bool CloseCOMPort() { try
Please tell me if some more info is needed here: Global declarations: typedef struct
hi Please tell me how to apply multiple valued sort order in solr here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.