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: 2020-02-16 04:22 UTC
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: cmb (profile)
Status: No Feedback Package: COM related
PHP Version: 5.2.5 OS: XP SP2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-08 22:20 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-02-08 22:20 UTC] cmb@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.
 [2020-02-16 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 07 06:01:27 2020 UTC