#31735 [Com]: COM will not create an object
| From: | pykker at gmail dot com | Date: | Sat, 04 Oct 2008 23:48:32 +0000 |
| Subject: | #31735 [Com]: COM will not create an object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129467@lists.php.net to get a copy of this message | ||
ID: 31735
Comment by: pykker at gmail dot com
Reported By: jbricci at gmail dot com
Status: No Feedback
Bug Type: COM related
Operating System: Win2000
PHP Version: 4.3.10
New Comment:
Confirmed.
I have the same problem with PHP 5.2.1 and 5.2.6 on Windows Vista
SP1.
Any news about this?
Previous Comments:
------------------------------------------------------------------------
[2005-02-10 23:32:13] sniper@php.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 "Open". Thank you.
------------------------------------------------------------------------
[2005-01-29 20:59:45] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-01-28 04:41:26] jbricci at gmail dot com
Description:
------------
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!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31735&edit=1