|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31735 COM will not create an object
Submitted: 2005-01-28 04:41 UTC Modified: 2005-02-10 23:32 UTC
Avg. Score:4.3 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jbricci at gmail dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 4.3.10 OS: Win2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
6 + 36 = ?
Subscribe to this entry?

 [2005-01-28 04:41 UTC] jbricci at gmail dot com
Trying to create a object via COM, will not create any object, no matter what COM type dll is called!

Reproduce code:

	$next = $_GET['next'];
	$key = new COM ( 'WScript.Shell' );
	$key->RegWrite ( 'HKEY_LOCAL_MACHINE\SOFTWARE\ABCSpell\LicenseKey', $next, 'REG_DWORD' );
	$key = null;


Expected result:
I expect the object to be created and the value entered into the Windows registry!

Actual result:
[27-Jan-2005 21:54:54] PHP Fatal error:  Call to a member function on a non-object in E:\www\docs\www\docs\run.php on line 5

If I try to test if it is a object, after trying to create it...


if ( !is_object ( $key ) )
	echo 'is not a object';


It will always print 'is not a object', this happens for any COM object I try -> (word, mappoint, spell)! Going back to 4.3.9, everything works the way it should!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-10 23:32 UTC]
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 "Open". Thank you.

 [2008-10-04 23:48 UTC] pykker at gmail dot com

I have the same problem with PHP 5.2.1 and 5.2.6 on Windows Vista 

Any news about this?
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 13:01:24 2023 UTC