#30461 [Asn->Fbk]: "Failed to Instantiate .Net Object" error (again)
| From: | tony2001@php.net | Date: | Sun, 13 Feb 2005 13:50:52 +0000 |
| Subject: | #30461 [Asn->Fbk]: "Failed to Instantiate .Net Object" error (again) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73992@lists.php.net to get a copy of this message | ||
ID: 30461
Updated by: tony2001@php.net
Reported By: dave dot fazio at annulet dot com
-Status: Assigned
+Status: Feedback
Bug Type: COM related
Operating System: Server 2003 Standard
PHP Version: 5CVS-2004-10-16 (dev)
Assigned To: wez
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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