KDevelop PHP Advancements: Namespaces and Error Recovery

Hi there,

just a quicky before I head off to bed and go on a short vacation the next few days:

PHP support in KDevelop now has support for the first PHP 5.3 feature, namely namespaces. I’m still convinced that the syntax sucks pretty bad in PHP’s implementation of namespaces but well, my hands are tight and I had to support it. Anyhow, with PHP master you shouldn’t get syntax errors anymore when using namespaces, but instead proper code completion, syntax highlighting and context information… Well, full blown DUChain integration :)

Furthermore I just introduced the first few error recoveries in PHP that should make the situation a bit better when you work on a broken file. Up until now any parse error resulted in a file with no advanced PHP features at all until you fixed that parse error. Now it should at least skip parse errors in code segments between braces (classes, functions, conditionals, namespaces, …). It can be much improved of course, and I’ll do just that next week.



Want to comment? Send me an email!

Comment by Andrew M (not verified) (2010-06-25 05:27:00)

This is AWESOME! i use KDevelop + php 5.3 with namespaces every day!

Comment by Anonymous (not verified) (2010-06-24 20:18:00)

just a quicky before I head off to bed

That’s what she said.


Comment by Milian Wolff (2010-06-28 19:59:00)

haha yeah good one :D

Comment by Michal (not verified) (2010-06-24 16:26:00)

Namespaces? Fantastic! Thank you for Your work.

Published on June 24, 2010.