BlogKDevelop PHP Advancements: Namespaces and Error Recovery Syndicate content

Thu, 06/24/2010 - 02:08

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.



This is AWESOME! i use Fri, 06/25/2010 - 05:27 — Andrew M (not verified)

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

just a quicky before I head Thu, 06/24/2010 - 20:18 — Anonymous (not verified)

just a quicky before I head off to bed

That’s what she said.


haha yeah good one :D Mon, 06/28/2010 - 19:59 — Milian Wolff

haha yeah good one :D

Namespaces? Fantastic! Thank Thu, 06/24/2010 - 16:26 — Michal (not verified)

Namespaces? Fantastic! Thank you for Your work.

Post new comment

  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options