php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30461 "Failed to Instantiate .Net Object" error (again)
Submitted: 2004-10-16 22:11 UTC Modified: 2005-02-21 01:00 UTC
Votes:7
Avg. Score:4.0 ± 1.1
Reproduced:7 of 7 (100.0%)
Same Version:1 (14.3%)
Same OS:3 (42.9%)
From: dave dot fazio at annulet dot com Assigned: wez (profile)
Status: No Feedback Package: COM related
PHP Version: 5CVS-2004-10-16 (dev) OS: Server 2003 Standard
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
3 + 26 = ?
Subscribe to this entry?

 
 [2004-10-16 22:11 UTC] 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-21 01:00 UTC] 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".
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 11:08:56 2021 UTC