#33912 [Fbk->Opn]: Crash when trying to access registry using com

From: Date: Thu, 28 Jul 2005 21:41:03 +0000
Subject: #33912 [Fbk->Opn]: Crash when trying to access registry using com
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82630@lists.php.net to get a copy of this message
ID: 33912 User updated by: awsewell at catawba dot edu Reported By: awsewell at catawba dot edu -Status: Feedback +Status: Open Bug Type: COM related Operating System: Windows XP PHP Version: 5.0.4 New Comment: I tried the latest version via the link provided and get the same results. Previous Comments: ------------------------------------------------------------------------ [2005-07-28 23:34:47] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-07-28 23:30:55] awsewell at catawba dot edu 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 this bug report at http://bugs.php.net/?id=33912&edit=1

« previous php.bugs (#82630) next »