NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
new COM Failed to create COM object Class not registered


Joined: 03 Feb 2008
Posts: 37
Reply with quote
When I try to set up a new COM object in phpED I get the above message.

But when I run the same script using XAMPP and localhost, it works. So I know my .dll is registered.

What must I do to get COM objects to run properly?

$eph_obj = new COM("astro_php.astro_php_class");

I am running PHP v5.4.

Thank you.

UPDATE: when I change my phpED PHP version (in Settings) from v5.6 to v5.4, then it works. What is it about v5.6 that breaks it??
View user's profileFind all posts by a_edwallSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7955
Reply with quote
My understanding is that either you didn't install COM extension in php.ini or there is indeed a bug in PHP.
You'd better post your question to php-general news group. We're supporting NuSphere products, while php itself is not our product.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 03 Feb 2008
Posts: 37
Reply with quote
I set up XAMPP with PHP 5.3 and the COM command works. I have PHP 5.4.45 in PhpED and COM works. When I switch {hpED to anything v5.6 or above COM does NOT work.

I downloaded XAMPP with PHP v5.6.40 and, using the same test script, COM does NOT work. It does not work in PHP v7 either. Hopefully this will help others who are trying to run a Windows .dll file and its functions on their local computer, using either PhpED or XAMPP.
View user's profileFind all posts by a_edwallSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7955
Reply with quote
You need to check what extensions are loaded by running php.exe -m or php-cgi.exe -m commands. If you don't see com extensino, you need to enable it in php.ini. Note that under XAMPP path to php.ini might be different. You need to check phpinfo() output to find what real path to php.ini is in effect. Similarly, if you run php from command line, just run php -i to get phpinfo() output.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
new COM Failed to create COM object Class not registered
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic