|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-29 20:59 UTC] iliaa@php.net
[2005-02-10 23:32 UTC] sniper@php.net
[2008-10-04 23:48 UTC] pykker at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
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!