Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3536

PHP Extension Namespaces

From Philipp Kraus <philipp.kraus@flashpixx.de>
Newsgroups comp.lang.php
Subject PHP Extension Namespaces
Date 2011-10-23 15:57 +0200
Organization 1&1 Internet AG
Message-ID <j816h5$vr5$1@online.de> (permalink)

Show all headers | View raw


Hello,

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:

C++:

namespace myspace {
     class myclass {}
}

should be create in PHP:

<?
namespace myspace;
class myclass {}
?>

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

Thanks

Phil

Back to comp.lang.php | Previous | Next | Find similar | Unroll thread


Thread

PHP Extension Namespaces Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-23 15:57 +0200

csiph-web