#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example

From: Date: Mon, 02 Aug 2004 18:04:27 +0000
Subject: #29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63952@lists.php.net to get a copy of this message
 ID:               29490
 Updated by:       wez@php.net
 Reported By:      mike at ziebeck dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         COM related
 Operating System: Windows 2000
 PHP Version:      5.0.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Please try the next PHP 5.1-dev (Unstable) snapshot dated after this
report.
I don't anticipate this fixing the problem, but it should give a reason
why the instantiation failed, and we can move on from there.



Previous Comments:
------------------------------------------------------------------------

[2004-08-02 13:23:47] mike at ziebeck dot net

Description:
------------
PHP.NET Api is not working.

While trying to instantiate .NET object as shown in the PHP.NET
documentation example a fatal error occures.

Tested Config:
 Windows 2000 pro + MS.NET RTL 1.1 + PHP 5.0 final 
 XP pro + MS.NET SDK 1.1 + PHP 5.0Rc3 /5.0 final 
 both tested via php CLI using config file php.ini-dist 

also noticed by:
--------------------------------------------------------------
Subject: [PHP] Instantiate .NET Classes in PHP5?
From: "Matthias HALDIMANN" <matthias.haldimann(-at-)epfl.ch>
Id:<20040430084921.10316.qmail@pb1.pair.com>
Date: Fri, 30 Apr 2004 10:49:20 +0200

http://archive.netbsd.se/?list=php-general&a=2004-04&mid=190829


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:
--------------
PHP Fatal error:  Uncaught exception 'com_exception' with message
'Failed to instantiate .Net object' in st_DotNet.php:2

Stack trace:
#0 {main}
  thrown in tst_DotNet.php on line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29490&edit=1


Thread (22 messages)

« previous php.bugs (#63952) next »