|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-11-03 08:03 UTC] mcyra at chello dot at
Description:
------------
A sample script from documentation causes this error.
German version of WinXP.
Microsoft .NET Framework 1.1.
Microsoft .NET Framework 1.1 German Language Pack.
PHP 5.0.5 (cli) (build: Sep 5 2005 15:54:44)
Zend Engine v2.0.5
Reproduce code:
---------------
<?php
$stack = new DOTNET("mscorlib", "System.Collections.Stack");
$stack->Push(".Net");
$stack->Push("Hello ");
echo $stack->Pop() . $stack->Pop();
?>
Actual result:
--------------
Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070057] Falscher Parameter.' in D:\NET\test.php:2
Stack trace:
#0 D:\NET\test.php(2): dotnet->dotnet('mscorlib', 'System.Collecti...')
#1 {main}
thrown in D:\NET\test.php on line 2
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
I have checked with the given link, result was: Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070057] Falscher Parameter.' in D:\NET\test.php:2 Stack trace: #0 D:\NET\test.php(2): dotnet->dotnet('mscorlib', 'System.Co llecti...') #1 {main} thrown in D:\NET\test.php on line 2I am experiencing the same problem as well. Summary: -------- .NET: Microsoft .NET Framework 1.1 OS: Windows Server 2003 Standard Edition SP1 PHP: PHP 5.0.5 (cli) (built: Sep 5 2005 15:54:44) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies Code Sample: ------------- <?PHP $stack = new DOTNET("mscorlib", "System.Collections.Stack"); $stack->Push(".Net"); $stack->Push("Hello "); echo $stack->Pop() . $stack->Pop(); ?> Actual Result: -------------- Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070057] The parameter is incorrect. ' in C:\DOTNET\sample.php:2 Stack trace: #0 C:\DOTNET\sample.php(2): dotnet->dotnet('mscorlib', 'System.Collecti...') #1 {main} thrown in C:\DOTNET\sample.php on line 2