php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36316 COM exception when testing $comObj == true
Submitted: 2006-02-07 11:02 UTC Modified: 2006-02-07 13:12 UTC
From: john dot carter at royal-london dot co dot uk Assigned:
Status: Closed Package: COM related
PHP Version: 5.1.2 OS: XP
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: john dot carter at royal-london dot co dot uk
New email:
PHP Version: OS:

 

 [2006-02-07 11:02 UTC] john dot carter at royal-london dot co dot uk
Description:
------------
Code raises follwing COM exception (tested with >1 COM object).

PHP Fatal error:  Uncaught exception 'com_exception' with message 'Error [0x8002000e] Invalid number of parameters.

This was fine in PHP 5.0.5.

Reproduce code:
---------------
<?php

$o1 = new StdClass();

if ($o1) {
    echo 'this is OK';
}

$o2 = new COM("WinNT://Domain");

if ($o2) {
    echo 'exception before it gets here';
}

?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-07 13:03 UTC] rrichards@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Dupe of bug #35954. already fixed in cvs
 [2006-02-07 13:12 UTC] john dot carter at royal-london dot co dot uk
Confirmed - tested with php5.1-win32-200602040330.zip
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 16:01:29 2024 UTC