Re: Bug in COM support in PHP 5.2.0 RC5

From: Date: Thu, 28 Sep 2006 19:57:01 +0000
Subject: Re: Bug in COM support in PHP 5.2.0 RC5
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-26909@lists.php.net to get a copy of this message
On 28.09.2006 23:24, Larry Menard wrote:
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
This is expected behaviour, which was (will be) introduced in 5.2. -- Wbr, Antony Dovgal

« previous php.qa (#26909) next »