ID: 31735 Updated by: [EMAIL PROTECTED] Reported By: jbricci at gmail dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: Win2000 PHP Version: 4.3.10 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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