#31735 [Fbk->NoF]: COM will not create an object
| From: | sniper@php.net | Date: | Thu, 10 Feb 2005 22:32:14 +0000 |
| Subject: | #31735 [Fbk->NoF]: COM will not create an object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73797@lists.php.net to get a copy of this message | ||
ID: 31735
Updated by: sniper@php.net
Reported By: jbricci at gmail dot com
-Status: Feedback
+Status: No Feedback
Bug Type: COM related
Operating System: Win2000
PHP Version: 4.3.10
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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