#31735 [NEW]: COM will not create an object

From: Date: Fri, 28 Jan 2005 03:41:28 +0000
Subject: #31735 [NEW]: COM will not create an object
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72962@lists.php.net to get a copy of this message
From: jbricci at gmail dot com Operating system: Win2000 PHP version: 4.3.10 PHP Bug Type: COM related Bug description: COM will not create an object 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 bug report at http://bugs.php.net/?id=31735&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31735&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31735&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31735&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31735&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31735&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31735&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31735&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31735&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31735&r=support Expected behavior: http://bugs.php.net/fix.php?id=31735&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31735&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31735&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31735&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31735&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31735&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31735&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31735&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31735&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31735&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31735&r=mysqlcfg

« previous php.bugs (#72962) next »