php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44256 Pb with COM in PHP5
Submitted: 2008-02-26 19:19 UTC Modified: -
Votes:7
Avg. Score:3.7 ± 1.2
Reproduced:4 of 5 (80.0%)
Same Version:3 (75.0%)
Same OS:2 (50.0%)
From: fmajet at yahoo dot fr Assigned:
Status: Open Package: COM related
PHP Version: 5.2.5 OS: XP SP2
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: fmajet at yahoo dot fr
New email:
PHP Version: OS:

 

 [2008-02-26 19:19 UTC] fmajet at yahoo dot fr
Description:
------------
Hello 
i've got this message when i want to instantiate a com object 
(in php 5.2.5 with WampServer)

$myobject=new COM("mylibrary.myclasse");

error
Uncaught exception 'com_exception' with message 'Failed to create COM object' Invalid Syntax

What is curious is when i instantiate a word or excel application it works(php5)
And when i instantiate it in php4 with EasyPhp it works also.
I'm trying to find for hours what it could be , maybe a pb of path in php.ini or in the way i call COM constructor but i don't succeed.
Thanks for your help 
Francois

Reproduce code:
---------------
$myobject=new COM("mylibrary.myclasse");

Expected result:
----------------
Nothing

Actual result:
--------------
error
Uncaught exception 'com_exception' with message 'Failed to create COM object' Invalid Syntax

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 17:01:27 2019 UTC