From: dave dot fazio at annulet dot com Operating system: Server 2003 Standard PHP version: 5CVS-2004-10-16 (dev) PHP Bug Type: COM related Bug description: "Failed to Instantiate .Net Object" error (again)
Description: ------------ Same error as previsouly described in closed Bug #29490 plus others, PHP returns error when creating .NET (dotnet) object. PHP is installed as ISAPI module. Reproduceable on all snapshots post 5.2. Confirmed .NET 1.1 framework installed, arrows-up in iis. Even rebuilt server from scratch - same error. Interestingly, refreshing this "failed" page always produces the more general "PHP has encountered an Access Violation in XXXXXX", and this is repeated with any subsequest COM or DOTNET until IIS is restart. Reproduce code: --------------- <?php $stack = new DOTNET("mscorlib", "System.Collections.Stack"); $stack->Push(".Net"); $stack->Push("Hello "); echo $stack->Pop() . $stack->Pop(); ?> Expected result: ---------------- "Hello .Net" Actual result: -------------- First time executed: -------------------- "Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070057] The parameter is incorrect. ' in C:\webtest\test-3.php:16 Stack trace: #0 {main} thrown in C:\webtest\test-3.php on line 16" All subsequent attempts until IIS restart: ------------------------------------------ "PHP has encountered an Access Violation at 01106AED" -- Edit bug report at http://bugs.php.net/?id=30461&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30461&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30461&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30461&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30461&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30461&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30461&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30461&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30461&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30461&r=support Expected behavior: http://bugs.php.net/fix.php?id=30461&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30461&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30461&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30461&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30461&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30461&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30461&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30461&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30461&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30461&r=mysqlcfg