ID: 29490 Updated by: [EMAIL PROTECTED] 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:
I've added even more verbosity; please try the next snapshot, which is due in about 45 minutes--it takes about that long to build, so this change might not quite make it into that snap. If you try it and see no different error message, wait for the next snap after that. Previous Comments: ------------------------------------------------------------------------ [2004-08-03 07:50:32] mike at ziebeck dot net 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 ------------------------------------------------------------------------ [2004-08-02 21:37:51] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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:<[EMAIL PROTECTED]> 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