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
 [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

Pull Requests

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: Thu Dec 26 23:01:28 2024 UTC