Bug in COM support in PHP 5.2.0 RC5
| From: | Larry Menard | Date: | Thu, 28 Sep 2006 19:24:43 +0000 |
| Subject: | Bug in COM support in PHP 5.2.0 RC5 | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-26908@lists.php.net to get a copy of this message | ||
Hi folks.
I believe I've found a bug in PHP 5.2.0 RC5. When I try to perform boolean operation
against an object of type COM, I get an error that it cannot be converted to boolean.
Simplest repro script:
<?php
$dbc = new COM ("WinNT://Domain");
var_dump(bool($dbc));
?>
Error produced is:
Catchable fatal error: Object of class com could not be converted to boolean
On PHP 5.1.4 it returns:
bool(true)
My environment is Windows XP SP2. Running "php -v" returns:
PHP 5.2.0RC5-dev (cli) (built: Sep 22 2006 04:22:26)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
As this is Windows, I'm running precompiled binaries ao I can't test any source code
changes, but I'd be happy to test new binaries if you wish.
Thanks.
--------------------
Larry Menard
"Defender of Geese and of All Things Natural"
E-mail and MSN Messenger: larry.menard@rogers.com
Web: http://ca.geocities.com/larry.menard@rogers.com