Re: Bug in COM support in PHP 5.2.0 RC5
| From: | Antony Dovgal | Date: | Thu, 28 Sep 2006 20:10:03 +0000 |
| Subject: | Re: Bug in COM support in PHP 5.2.0 RC5 | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26910@lists.php.net to get a copy of this message | ||
On 28.09.2006 23:57, Antony Dovgal wrote:
On 28.09.2006 23:24, Larry Menard wrote:Hm, I'm probably wrong. Objects cannot be converted to int, but they should be always equal to (bool)true. -- Wbr, Antony DovgalHi 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 booleanThis is expected behaviour, which was (will be) introduced in 5.2.