#18878 [Opn->Bgs]: method always seems to cause exception
| From: | phanto@php.net | Date: | Tue, 13 Aug 2002 20:59:40 +0000 |
| Subject: | #18878 [Opn->Bgs]: method always seems to cause exception | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16642@lists.php.net to get a copy of this message | ||
ID: 18878
Updated by: phanto@php.net
Reported By: tohlow@novadys.de
-Status: Open
+Status: Bogus
Bug Type: COM related
Operating System: WIN 2000
PHP Version: 4.2.2
New Comment:
S_OK (the hresult of a successful function call) equals to 0 and '0 or
something()' will cause the evaluation of something() therefor your
script dies.
harald
Previous Comments:
------------------------------------------------------------------------
[2002-08-13 06:45:23] tohlow@novadys.de
Hi,
I have a COM object with a method that only returns hresult. The call
is like this:
$myObj->Method();
Even though it works, I noticed that
$myObj->Method() or die ("method failed");
will terminate my script, because apparently some sort of exception
occurs. I know the information may not be sufficient, but I'll gladly
answer additional questions. The problem looks similar enough to an
already fixed problem with ID 12718.
Thanks,
Thorsten
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18878&edit=1