Skip to main content
Participant
July 3, 2010
Question

PHP namespace not recognized in DW

  • July 3, 2010
  • 1 reply
  • 1586 views

Dreamweaver CS5 says that i have an error in my code when i write "namespace" eventhough it's correctly written according to php manual. Is there a workaround for this? Am I able to define my own language constructs in DW?

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
July 4, 2010

Dreamweaver CS5's PHP support is based on PHP 5.2. That's why it doesn't recognize the use of namespace. AFAIK, there's nothing you can do about it, apart from submitting a feature request (https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform) to upgrade support to PHP 5.3.

Although PHP 5.3 was released at the end of June last year, it was still only in development when work started on integrating the syntax checker and other PHP enhancements into Dreamweaver CS5. As I understand from my contacts in the Dreamweaver engineering team, waiting for PHP 5.3 to be finalized would have resulted in having to drop many of the planned features. So, a decision was made to go with the stable 5.2 release.