Re: Re: [Gallery-devel] [PHP-QA] Bug in COM support in PHP 5.2.0 RC5
| From: | Wez Furlong | Date: | Thu, 28 Sep 2006 21:54:42 +0000 |
| Subject: | Re: Re: [Gallery-devel] [PHP-QA] Bug in COM support in PHP 5.2.0 RC5 | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26919@lists.php.net to get a copy of this message | ||
I guess we should cast to true if we don't succeed in getting the boolean version of that object.
--Wez.
On Sep 28, 2006, at 5:52 PM, Antony Dovgal wrote:
On 29.09.2006 01:47, Wez Furlong wrote:Tony, Any idea why this is now an error? Is something missing from the com extension?I guess this is because com_object_cast() handler returns FAILURE: See ext/com_dotnet/com_handlers.c, line 527, this is the line where it likely comes from. And if the problem is in VariantChangeType() failing to convert the object to VT_BOOL, then it doesn't look like PHP problem. I can't test it on Linux though, so this is just what I see in the sources.If so, it needs to be fixed because one of the core features of the variant class is magically representing a variant bool, which can be interpreted as either true or false.--Wbr, Antony Dovgal