|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18878 method always seems to cause exception
Submitted: 2002-08-13 06:45 UTC Modified: 2002-08-13 16:59 UTC
From: tohlow at novadys dot de Assigned:
Status: Not a bug Package: COM related
PHP Version: 4.2.2 OS: WIN 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tohlow at novadys dot de
New email:
PHP Version: OS:


 [2002-08-13 06:45 UTC] tohlow at novadys dot de

I have a COM object with a method that only returns hresult. The call is like this:


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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 16:59 UTC]
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.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Aug 16 10:05:45 2022 UTC