|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-19 16:28 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 14:00:01 2025 UTC |
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)