Extending PHP: References and Pointers

From: Date: Fri, 08 Sep 2000 22:47:13 +0000
Subject: Extending PHP: References and Pointers
Groups: php.dev 
Request: Send a blank email to php-dev+get-32726@lists.php.net to get a copy of this message
Hello, I've got the following problem: Writing a PHP Extension I'd like do pass a reference of a class created in PHP to a function of the new extension: <?php $Class = new CClass; $mymodule_addRef(&$Class); ?> In my c-function the passed reference needs to be converted as I wan't to use this reference in the folowing c-function: setRef(CObject *Pointer) How is it possible to convert the Parameter into a pointer CObject. As I read in the book "Web Application Development with PHP4" this could have sth. to do with so called "Resources" as this article refers to the use in the mysql-extension. Can someone who is familiar to this topic be so kind and give me a little code snipped or any hints concerning my problem ? Thanks Andre

« previous php.dev (#32726) next »