ID: 30461 Comment by: ivan_lau at hk dot super dot net Reported By: dave dot fazio at annulet dot com Status: No Feedback Bug Type: COM related Operating System: Server 2003 Standard PHP Version: 5CVS-2004-10-16 (dev) Assigned To: wez New Comment:
I have the same problem. Code Used --------- <?php $stack = new DOTNET("mscorlib", "System.Collections.Stack"); $stack->Push(".Net"); $stack->Push("Hello "); echo $stack->Pop() . $stack->Pop(); ?> Message ------- Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070057] parameter is incorrect. System ------ Chinese Windows XP Home, sp1 Apache 2.0.53 PHP Version 5.1.0-dev May 13 2005 00:27:38 .Net 1.1 Previous Comments: ------------------------------------------------------------------------ [2005-02-21 01:00:08] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-02-13 14:50:51] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2004-10-16 22:11:44] dave dot fazio at annulet dot com 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 this bug report at http://bugs.php.net/?id=30461&edit=1