#38985 [Opn->Asn]: Can't cast COM objects to boolean
| From: | tony2001@php.net | Date: | Wed, 04 Oct 2006 09:18:31 +0000 |
| Subject: | #38985 [Opn->Asn]: Can't cast COM objects to boolean | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103067@lists.php.net to get a copy of this message | ||
ID: 38985
Updated by: tony2001@php.net
Reported By: larry dot menard at rogers dot com
-Status: Open
+Status: Assigned
Bug Type: COM related
Operating System: Windows XP, SP2
PHP Version: 5.2.0RC4
-Assigned To:
+Assigned To: wez
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