Re: Writeing OO exteions for PHP 4.3

From: Date: Fri, 03 Sep 2004 21:03:04 +0000
Subject: Re: Writeing OO exteions for PHP 4.3
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-12569@lists.php.net to get a copy of this message
On Sep 3, 2004, at 2:33 PM, Jan Gerritsen wrote:
Hi,
If I understand you correctly you can put this pointer inside of a resource container and return the resource container to user space as the return value from url_init(). Then, from url_set_string() you accept the resource as a parameter and extract the pointer to your CPP instance of whatever class.
Tanks for your response, but your solution do not work for me, because I don’t get the resource_id as parameter for calls to the object. ($php_url_object->set_string(“asdf”); ) I now save the C++ Object pointer in a resource and save this resource as an attribute of the PHP object.
This is a typical strategy for php4 oo stuff. George

« previous php.internals (#12569) next »