From: will at flourishlib dot com Operating system: Windows XP SP3 PHP version: 5.2.10RC1 PHP Bug Type: COM related Bug description: COM object instantiation throws 'Invalid Syntax' exception
Description: ------------ In previous versions of PHP it was possible to create a COM object for CAPICOM to generate random data. I'm not sure at what version it broke, but now trying to instantiate the COM object, an exception is thrown with the message "Failed to create COM object 'CAPICOM.Utilities.1': Invalid syntax". This behavior seem to be present on both 5.2.9-2 and 5.2.10RC1. I've been unable to figure out what this error really means. The ProgID I'm specifying is valid according to Microsoft - http://msdn.microsoft.com/en-us/library/aa388176(VS.85).aspx. Any sort of direction would be useful in trying to solve this issue. Reproduce code: --------------- new COM('CAPICOM.Utilities.1'); Expected result: ---------------- A COM object that can be used. Actual result: -------------- An exception with the message: Failed to create COM object 'CAPICOM.Utilities.1': Invalid syntax -- Edit bug report at http://bugs.php.net/?id=48498&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48498&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48498&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48498&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48498&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48498&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48498&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48498&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48498&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48498&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48498&r=support Expected behavior: http://bugs.php.net/fix.php?id=48498&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48498&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48498&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48498&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48498&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48498&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48498&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48498&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48498&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48498&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48498&r=mysqlcfg