PHP Extension Namespaces

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I would like to create a PHP extension with C++. The basic functional
works fine. My C++ classes are organized within namespaces.
So each C++ class sould be got a equal PHP class. In this case I would
like to translate the C++ namespaces to a PHP
namespace eg:


namespace myspace {
     class myclass {}

should be create in PHP:

namespace myspace;
class myclass {}

(How) Can I create a  namespace in a extension?



Site Timeline