Re: Re: [Gallery-devel] [PHP-QA] Bug in COM support in PHP 5.2.0 RC5
| From: | Wez Furlong | Date: | Thu, 28 Sep 2006 21:48:09 +0000 |
| Subject: | Re: Re: [Gallery-devel] [PHP-QA] Bug in COM support in PHP 5.2.0 RC5 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26917@lists.php.net to get a copy of this message | ||
Yes :-)
I just wanted to gauge whether it was a critical bug; it is (see my other mail regarding variants).
--Wez.
On Sep 28, 2006, at 5:46 PM, Hannes Magnusson wrote:
On 9/28/06, Wez Furlong <wez@netevil.org> wrote:that check is redundant in PHP 5; if the object couldn't be created, an exception will be thrown.Redundant or not, it's still a bug :) -Hannes--Wez. On Sep 28, 2006, at 5:15 PM, Larry Menard wrote:I originally found the problem like this: // Connect to database $dbc = new COM(...); // Check that it was successful if (! $dbc) { ...}; We then reduced it to that one single line just forsimplification.-------------------- 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 ----- Original Message ----- From: "Wez Furlong" <wez@netevil.org> To: "Larry Menard" <larry.menard@rogers.com> Cc: <gallery-devel@lists.sourceforge.net>; "Wez Furlong" <wez@omniti.com>; "Antony Dovgal" <antony@zend.com>; <php- qa@lists.php.net> Sent: Thursday, September 28, 2006 4:49 PM Subject: Re: [Gallery-devel] [PHP-QA] Bug in COM support in PHP 5.2.0 RC5com, variant and dotnet objects are all the same really. The question is, why are you comparing them with bool in the first place? --Wez. On Sep 28, 2006, at 4:40 PM, Larry Menard wrote:5.2.anotherI also found that it's not only COM objects... I havetry toOn 28.09.2006 23:57, Antony Dovgal wrote:occurrence: Catchable fatal error: Object of class variant could not be converted to boolean -------------------- 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 ----- Original Message ----- From: "Antony Dovgal" <antony@zend.com> To: "Antony Dovgal" <antony@zend.com> Cc: "Wez Furlong" <wez@omniti.com>; <gallery- devel@lists.sourceforge.net>; "Larry Menard" <larry.menard@rogers.com>; <php-qa@lists.php.net> Sent: Thursday, September 28, 2006 4:10 PM Subject: Re: [Gallery-devel] [PHP-QA] Bug in COM support in PHP 5.2.0 RC5On 28.09.2006 23:24, Larry Menard wrote:Hi folks. I believe I've found a bug in PHP 5.2.0 RC5. When Iget anperform boolean operation against an object of type COM, Ierror that it cannot be converted to boolean.converted to booleanSimplest repro script: <?php $dbc = new COM ("WinNT://Domain"); var_dump(bool($dbc)); ?> Error produced is: Catchable fatal error: Object of class com could not beThis is expected behaviour, which was (will be) introduced inHm, I'm probably wrong. Objects cannot be converted to int, but they should be always-- Wbr, Antony Dovgalequal to (bool)true.----------------------------------------------------------------------chance toTake Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the---opinions on IT & business topics through brief surveys -- andshare yourhttp://www.techsay.com/default.php?earn cash__[ g a l l e r y - d e v e l ]_________________________ [ list info/archive --> http://gallery.sf.net/lists.php ] [ gallery info/FAQ/download --> http://gallery.sf.net ]page=join.php&p=sourceforge&CID=DEVDEV-------------------------------------------------------------------------Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance toshare youropinions on IT & business topics through brief surveys -- andearn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV__[ g a l l e r y - d e v e l ]_________________________ [ list info/archive --> http://gallery.sf.net/lists.php ] [ gallery info/FAQ/download --> http://gallery.sf.net ] -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php