#29490 [NEW]: 'Failed to instantiate .Net object' using PHP.NET docu example
From: mike at ziebeck dot net
Operating system: Windows 2000
PHP version: 5.0.0
PHP Bug Type: COM related
Bug description: 'Failed to instantiate .Net object' using PHP.NET docu example
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 bug report at http://bugs.php.net/?id=29490&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29490&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29490&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29490&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29490&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29490&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29490&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29490&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29490&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29490&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29490&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29490&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29490&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29490&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29490&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29490&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29490&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29490&r=float
Thread (22 messages)
- mike at ziebeck dot net
- wez@php.net#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Fbk->Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- wez@php.net#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Fbk->Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- wez@php.net#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Fbk->Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- wez@php.net#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Fbk->Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- wez@php.net#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Fbk->Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- wez@php.net#29490 [Opn->Fbk]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Fbk->Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- matthias dot haldimann at epfl dot ch#29490 [Com]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Opn]: 'Failed to instantiate .Net object' using PHP.NET docu example
- christian at wenz dot org#29490 [Com]: 'Failed to instantiate .Net object' using PHP.NET docu example
- wez@php.net#29490 [Opn->Csd]: 'Failed to instantiate .Net object' using PHP.NET docu example
- christian at wenz dot org#29490 [Com]: 'Failed to instantiate .Net object' using PHP.NET docu example
- mike at ziebeck dot net#29490 [Csd]: 'Failed to instantiate .Net object' using PHP.NET docu example
- christian at wenz dot org#29490 [Com]: 'Failed to instantiate .Net object' using PHP.NET docu example