ID: 29490
User updated by: mike at ziebeck dot net
Reported By: mike at ziebeck dot net
-Status: Feedback
+Status: Open
Bug Type: COM related
Operating System: Windows 2000
PHP Version: 5.0.0
New Comment:
same result using:
------------------
PHP 5.1.0-dev (cli) (built: Aug 3 2004 04:21:03)
Zend Engine v2.0.1-dev, Copyright (c) 1998-2004 Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2004-08-02 21:37:51] wez@php.net
Dated *after* this message.
------------------------------------------------------------------------
[2004-08-02 20:56:37] mike at ziebeck dot net
same result using:
------------------
PHP 5.1.0-dev (cli) (built: Aug 2 2004 16:28:27)
Zend Engine v2.0.1-dev, Copyright (c) 1998-2004 Zend Zechnologies
------------------------------------------------------------------------
[2004-08-02 20:04:26] wez@php.net
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.
------------------------------------------------------------------------
[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