Greetings,
I've been wondering if we could setting on the PHP settings tab (or maybe per project) that forces a PHP syntax check on save for .php files. I've gotten in to the habit of running a PHP syntax check before saving source files, but I would really like it if when I clicked save it just ran. If the syntax check failed it could give me a warning dialog letting me know that syntax check failed and asking me if I'm sure I want to save. Otherwise it would save normally. Maybe just a single button like the "Save and upload to FTP" could be added that would do exactly the same thing. I think this would be a great feature and it seems very simple to implement.
PHP syntax check on save option
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Re: PHP syntax check on save option
I think that would be a good option to have. I normally save without checking, then upload and then realise I've got a syntax error. This could be a real time saver. The check seems to run pretty fast too so I don't think it would slow down saving too much.
-
- Posts: 2
- Joined: Tue Oct 27, 2009 5:55 pm
Re: PHP syntax check on save option
You're right, it is pretty fast. Even on files that are 3000+ lines long it doesn't take very long. On my laptop it seems to run about a second per 1000 lines of code. Well worth the extra (transparent) second when it eliminates the simple (and easy to miss) mistakes.xtom wrote:I think that would be a good option to have. I normally save without checking, then upload and then realise I've got a syntax error. This could be a real time saver. The check seems to run pretty fast too so I don't think it would slow down saving too much.