Re: [PHP4BETA] C++ classes in PHP4 extensions

From: Date: Wed, 22 Mar 2000 10:00:54 +0000
Subject: Re: [PHP4BETA] C++ classes in PHP4 extensions
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12486@lists.php.net to get a copy of this message
KR>> Is it possible to access methods in a C++ class from PHP4? Lets KR>> say I have written a class like this in C++: KR>> Is this possible? And if it is possible: How must the source of KR>> the C++ class look like? How to make the class accessible to KR>> PHP? I fear that would be problematic, because in order to access C++ class method from shared library (I suppose it's there - since this is only convenient way to access external C code), you should call it by name. And name of the method depends on it's class, name, and parameter types. Also, I'm not sure - it there a standard about converting C++ names like TClass::themethod(a *, b&, int) to C-compatible names? If not, the name becomes compiler-dependent and very hard to derive. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.version4 (#12486) next »