ID: 30461
Updated by: [EMAIL PROTECTED]
Reported By: dave dot fazio at annulet dot com
-Status: Open
+Status: Assigned
Bug Type: COM related
Operating System: Server 2003 Standard
PHP Version: 5CVS-2004-10-16 (dev)
-Assigned To:
+Assigned To: wez
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