#47569 [NEW]: DOTNET Excpection error
From: Sekai dot yu at gmail dot com
Operating system: Windows Server
PHP version: 5.2.9
PHP Bug Type: COM related
Bug description: DOTNET Excpection error
Description:
------------
When i've tried to use DOTNET lib's i got an Excpetion errors in 90% of my
classes
Tried: System.Console, System.Windows.Forms.MessageBox,
System.Collection.Generic.List, System.Windows.Drawing.Graphics (and moch
more...)
Reproduce code:
---------------
<?php
/*
$console = new DOTNET("mscorlib", "System.Console");
$var = $console->ReadLine();
$console->WriteLine( "Hello world from PHP - " . $var );
unset( $var );
unset( $console );
exit();
*/
$list = new DOTNET("mscorlib", "System.Collections.Generic.List");
print $list->ToString();
?>
Expected result:
----------------
Veiwing the Console Commander like in Console APP In c# or use the list
generic, grafics etc...
Actual result:
--------------
Fatal error: Uncaught exception 'com_exception' with message 'Failed to
instantiate .Net object [CreateInstance] [0x80131522] ' in
C:\wamp\www\folder\index.php:2 Stack trace: #0
C:\wamp\www\folder\index.php(2): dotnet->dotnet('mscorlib',
'System.Collecti...') #1 {main} thrown in C:\wamp\www\folder\index.php on
line 2
--
Edit bug report at http://bugs.php.net/?id=47569&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47569&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47569&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47569&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47569&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47569&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47569&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47569&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47569&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47569&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47569&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47569&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47569&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47569&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47569&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47569&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47569&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47569&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47569&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47569&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47569&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47569&r=mysqlcfg
Thread (1 message)
- Sekai dot yu at gmail dot com