ID:               38985
 Updated by:       [EMAIL PROTECTED]
 Reported By:      larry dot menard at rogers dot com
 Status:           Assigned
 Bug Type:         COM related
 Operating System: Windows XP, SP2
 PHP Version:      5.2.0RC4
-Assigned To:      wez
+Assigned To:      tony2001
 New Comment:

batting back to you Tony; between moving offices this last week and a
dead laptop I don't have a win32 build environment and won't have one
in time to get this fixed for 5.2.

As per our email discussion, I think the fix for this issue is to not
return failure from the COM object cast handler in the case that we
can't convert to variant bool, but to use regular PHP boolean cast at
that point (after trying variant bool conversion) and returning
success.



Previous Comments:
------------------------------------------------------------------------

[2006-09-28 19:55:41] larry dot menard at rogers dot com

Description:
------------
First of all, I'm usng RC5, not RC4 (RC5 is not in the list above).

Can't cast an object of type COM to boolean.

Reproduce code:
---------------
$dbc = new COM('WinNT://Domain'); var_dump((bool)$dbc);

Expected result:
----------------
bool(true)

Actual result:
--------------
Catchable fatal error:  Object of class com could not be converted to
boolean


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38985&edit=1

Reply via email to