Unknown function or variable names are not a syntax error. You might as well have your own functions called srt_rpleace() or kecho().Reuvenm wrote:As it looks, the syntax is checking matching (){}[] etc, but not PHP functions syntax (eg, a mistake in writing $_PHP_SELF vs $_PPH_SEFL, or str_replace vs srt_rpleace).
2 Rapid PHP bugs
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
that's correct, but in a IDE application all local functions are (and should) consumed into consideration.flz wrote:Unknown function or variable names are not a syntax error. You might as well have your own functions called srt_rpleace() or kecho().Reuvenm wrote:As it looks, the syntax is checking matching (){}[] etc, but not PHP functions syntax (eg, a mistake in writing $_PHP_SELF vs $_PPH_SEFL, or str_replace vs srt_rpleace).
just watch ZEND in action (I know, I hate to compare

Thank you
Thank you. Maybe you could just automatically disable auto-cleanup when "constrain cursor to text" is activated to keep the number of options small. I would also default to "constrain cursor to text" and make "click anywhere to type" an option instead, but that's probably because of my habits.admin wrote:Currently the auto-cleanup is active all the time. I guess in the future releases we can make an option that would allow you to disable the automatic removal of trailing spaces and tabs, this would also solve the pain with "modified" flag.
Sorry if I misused the word Syntax.admin wrote:Syntax check is syntax check, it dos not validate the logical correctness of the code and it does not perform any debugging.

As I'm willing to improve on RP features and make it more usefull and attractive to coders, I was reffering to a feature which is live-n-kicking in Zend IDE, not code validation or debugging at all, but real-time error-correction-sugestion tool.
You may consider it now, or will have to consider it in the future. I hope you understand the feature I'm talking about.

Thank you
Sorry for late reply, as I do not receive any notification from the Forum here (though I marked the notify box, also in my profile. Please check).
In Zend IDE you are prompted while typing, and for various options - all configurable within the configuration window.
Options include:
- Syntax Highlighting
- Matched quotes/brackets highlight
- Automatic Code Complition List (and I guess I ment that), for Classes, Functions, Variables, Constants, Keywords... where after a preset pause (user setable) you get a 2-pane pop-up, with code complition suggestions list. While browsing each line from the list, you see each code structure and parameters, a description (in a down-under pane), and have the option to click a suggestion, where it will be inserted into the current cursor position.
So, if for example I start keying "fil " after few milliseconds (as not to interfer with regular typing) a popup with a list may come:
"
file_exists(string $filename)
file_get_contents(string $filename)
fileatime(string $filename)
..."
etc..
depands on how many letters you've type as for clue.
While we were discussing the syntax issue before, and you were wondering about the PHP version installed in our box, I though it corelates with this king of code complition. Sorry for misleading you before.
As for the code complition feature, it helps a-lot and worth addition.
RM
In Zend IDE you are prompted while typing, and for various options - all configurable within the configuration window.
Options include:
- Syntax Highlighting
- Matched quotes/brackets highlight
- Automatic Code Complition List (and I guess I ment that), for Classes, Functions, Variables, Constants, Keywords... where after a preset pause (user setable) you get a 2-pane pop-up, with code complition suggestions list. While browsing each line from the list, you see each code structure and parameters, a description (in a down-under pane), and have the option to click a suggestion, where it will be inserted into the current cursor position.
So, if for example I start keying "fil " after few milliseconds (as not to interfer with regular typing) a popup with a list may come:
"
file_exists(string $filename)
file_get_contents(string $filename)
fileatime(string $filename)
..."
etc..
depands on how many letters you've type as for clue.
While we were discussing the syntax issue before, and you were wondering about the PHP version installed in our box, I though it corelates with this king of code complition. Sorry for misleading you before.
As for the code complition feature, it helps a-lot and worth addition.
RM