From: awsewell at catawba dot edu Operating system: Windows XP PHP version: 5.0.4 PHP Bug Type: COM related Bug description: Crash when trying to access registry using com
Description: ------------ When trying to use php 5.04 to access the registry with the code below PHP crashes. Reproduce code: --------------- <?php $hostname = "."; $keyPath = "\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; $wshShell = new COM("winmgmts:{impersonationLevel=impersonate}//{$hostname}/root/default:StdRegProv"); $wshShell->EnumKey("HKEY_LOCAL_MACHINE", $keyPath, $keys); foreach($keys as $key){ print $key; } unset($wshShell); ?> Expected result: ---------------- I execpt to see the list of subkeys from the registry. Actual result: -------------- PHP crashes with only "CLI has encountered a problem and needs to close. We are sorry for the inconvenience." -- Edit bug report at http://bugs.php.net/?id=33912&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33912&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33912&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33912&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33912&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33912&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33912&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33912&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33912&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33912&r=support Expected behavior: http://bugs.php.net/fix.php?id=33912&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33912&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33912&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33912&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33912&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33912&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33912&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33912&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33912&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33912&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33912&r=mysqlcfg