Namespace problem with ZF8

General discussion on Zend Studio
Post Reply
zsquad
Posts: 11
Joined: Mon Nov 08, 2010 5:08 pm

Namespace problem with ZF8

Post by zsquad » Mon Nov 08, 2010 5:11 pm

I may have found a bug in Zend Studio 8 related to namespaces. ZF8 is not recognizing namespace declarations in the format: namespace MyNamespace { /*class here*/ } as in:

namespace MyNamespace
{

class Testing
{

public function __construct()
{

}

public function TestingNameSpace()
{

}

}

}

It errors at the line: namespace MyNamespace

User avatar
rbzend
Zend Global Support
Posts: 536
Joined: Tue Dec 23, 2008 5:03 pm

Re: Namespace problem with ZF8

Post by rbzend » Mon Nov 08, 2010 5:45 pm

You probably just need to switch the PHP Interpreter Properties of your project to PHP 5.3.
Roman Basayev
Rogue Wave Support
https://support.roguewave.com/

mmmshuddup
Posts: 28
Joined: Fri Oct 22, 2010 6:44 am

Re: Namespace problem with ZF8

Post by mmmshuddup » Mon Nov 08, 2010 7:09 pm

rbzend wrote:You probably just need to switch the PHP Interpreter Properties of your project to PHP 5.3.
Agreed. I believe you can modify the default for this but I'm not sure where. Anyways, when setting up a new PHP project it's one of the radio buttons. You can select Use project specific settings I believe and then click the select list and choose PHP 5.3.

Post Reply