From: lunter at interia dot pl
Operating system: WinXP 32-bit
PHP version: 6SVN-2009-08-19 (snap)
PHP Bug Type: COM related
Bug description: Call to undefined method com::EnumKey()
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 bug report at http://bugs.php.net/?id=49293&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49293&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49293&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49293&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49293&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49293&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49293&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49293&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49293&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49293&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49293&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49293&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49293&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49293&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49293&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49293&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49293&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49293&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49293&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49293&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49293&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49293&r=mysqlcfg