zvals and references

From: Date: Thu, 23 May 2002 19:22:09 +0000
Subject: zvals and references
Groups: php.dev 
Request: Send a blank email to php-dev+get-84337@lists.php.net to get a copy of this message
In some code in the COM extension, there is a function that converts COM objects into something that PHP can use as a zval. There is a particular case where the COM object might be one that PHP created as a wrapper for a zval. Given that the code can use some magic to extract the zval * from the COM object, how can I legally return it as a reference to the original object? Can I just increment the refcount and leave it at that, or should I use the copy_ctor? I very much want to be working with a reference to the object and not a copy. --Wez. -- Wez Furlong The Brain Room Ltd.

« previous php.dev (#84337) next »