RE: [PHP-WIN] Re: destroying COM objects
| From: | Rich Gray | Date: | Fri, 28 Feb 2003 11:35:34 +0000 |
| Subject: | RE: [PHP-WIN] Re: destroying COM objects | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18758@lists.php.net to get a copy of this message | ||
>> I've been using the COM functionality in PHP but I cannot set a way to
>> destroy the objects. If I were using ASP I'd just set OBJECT = nothing.
>> Is there some sort of equivalent in PHP?> unset($com_object);
>>
> --
> Michael Power
> Software Developer
> Concentrix Limited
I may be talking out of my proverbial but I believe unset() will just remove
the reference to the object it won't destroy the object itself which is why
I suggested $obj = null in my earlier message... however I'm probably being
pedantic as the next gc cycle will clean up objects with a 0 reference count
anyway...
I suppose...
$obj = null;
unset($obj);
Would cover all bases...
Cheers
Rich