#49293 [Csd->Bgs]: Call to undefined method com::EnumKey()
| From: | pajoye@php.net | Date: | Wed, 19 Aug 2009 16:59:48 +0000 |
| Subject: | #49293 [Csd->Bgs]: Call to undefined method com::EnumKey() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141251@lists.php.net to get a copy of this message | ||
ID: 49293
Updated by: pajoye@php.net
Reported By: lunter at interia dot pl
-Status: Closed
+Status: Bogus
Bug Type: COM related
Operating System: WinXP 32-bit
PHP Version: 6SVN-2009-08-19 (snap)
Previous Comments:
------------------------------------------------------------------------
[2009-08-19 16:28:25] kalle@php.net
Dublicate of #45836, its because theres not any unicode support in
com_dotnet yet
------------------------------------------------------------------------
[2009-08-19 12:09:00] lunter at interia dot pl
Description:
------------
Bug introduced in PHP 6.0.
PHP 5.3.0 works perfect.
Reproduce code:
---------------
<?
define('HKEY_LOCAL_MACHINE',0x80000002);
$wshShell=new COM('winmgmts://./root/default:StdRegProv');
$wshShell->EnumKey(HKEY_LOCAL_MACHINE,'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall',$keys=new
VARIANT());
print(count($keys));
?>
Expected result:
----------------
integer value (try with PHP 5.3.0)
Actual result:
--------------
Fatal error: Call to undefined method com::EnumKey() in
C:\htdocs\php6\nod32_sysinspector.php on line
(try with PHP 6 snap)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49293&edit=1