2 Rapid PHP bugs

Post your questions and problem reports here

Moderator: kfury77

Forum rules
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;
flz
Posts: 22
Joined: Thu Jul 14, 2005 8:58 am

Post by flz »

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).
Unknown function or variable names are not a syntax error. You might as well have your own functions called srt_rpleace() or kecho().
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

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.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Reuvenm
Posts: 18
Joined: Sat Jul 02, 2005 1:13 pm

Post by Reuvenm »

flz wrote:
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).
Unknown function or variable names are not a syntax error. You might as well have your own functions called srt_rpleace() or kecho().
that's correct, but in a IDE application all local functions are (and should) consumed into consideration.
just watch ZEND in action (I know, I hate to compare :? )

Thank you
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Syntax check is syntax check, it dos not validate the logical correctness of the code and it does not perform any debugging. The syntax check uses PHP.exe capabilities of checking syntax. So currently nothing can be done here anyway.
Karlis Blumentals
Blumentals Software
www.blumentals.net
flz
Posts: 22
Joined: Thu Jul 14, 2005 8:58 am

Post by flz »

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.
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.
Reuvenm
Posts: 18
Joined: Sat Jul 02, 2005 1:13 pm

Post by Reuvenm »

admin wrote:Syntax check is syntax check, it dos not validate the logical correctness of the code and it does not perform any debugging.
Sorry if I misused the word Syntax. :cry:
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
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Now I see.

How does this error checking exactly work? Can you describe in detail, please? I do not want to install zend on the computer I currently use.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Reuvenm
Posts: 18
Joined: Sat Jul 02, 2005 1:13 pm

Post by Reuvenm »

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
Post Reply