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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to