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:<[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 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