ID: 33188
Comment by: kaspernj at gmail dot com
Reported By: sean at iplus dot plus dot com
Status: Assigned
Bug Type: COM related
Operating System: Windows 2000
PHP Version: 5CVS-2005-05-31
Assigned To: wez
New Comment:
I have spent the last two days on trying to get the DOTNET-class
working.
I have tried PHP 5.1, 5.2 and 6.0, which all outputted the same
error-message. I am running Windows XP SP2 with the .NET Framework 2.0
(I have also tried 1.0).
I have both tried the downloadable version of PHP 5.1 and the snapshot.
Both 5.2 and 6.0 was from snapshot (31-07-2006).
Same script as test-script as Sean (the one from the manual):
<?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:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to
instantiate .Net object [CreateInstance] [0x80131522] ' in
D:\phpprogs\PW-uploader\filedialog.php:2
Stack trace:
#0 D:\phpprogs\PW-uploader\filedialog.php(2):
dotnet->dotnet('mscorlib', 'System.Collecti...')
#1 {main}
thrown in D:\phpprogs\PW-uploader\filedialog.php on line 2
Previous Comments:
------------------------------------------------------------------------
[2006-05-06 17:41:28] bvanderweb at gmail dot com
I am unable to make the simple stack example work in my environment,
either (same error message). I am using .NET 1.1 in Windows XP SP2. It
would be really great for PHP to get this working as it does in Perl,
Python, etc.
------------------------------------------------------------------------
[2005-08-29 18:28:49] hobbit at lantic dot net
5.1.0-dev (cli) - bug still present
------------------------------------------------------------------------
[2005-08-29 18:06:53] hobbit at lantic dot net
php 5.0.4 (cli) still has this issue
------------------------------------------------------------------------
[2005-05-31 23:04:01] sean at iplus dot plus dot com
I have tested again after a reboot but still get the same result.
Whats the significance of a reboot ? What gets installed/modified ? I
though I just had to unzip the binaries and run PHP.EXE with a .PHP
script. Im not using PHP with a webserver - just using PHP.EXE on the
command line. I didnt think I had to install anything extra for PHP
(and the DOTNET extension) to work. Maybe I've missed something here ?
Thanks
------------------------------------------------------------------------
[2005-05-30 23:56:59] [EMAIL PROTECTED]
Did you reboot..? :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33188
--
Edit this bug report at http://bugs.php.net/?id=33188&edit=1