php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41790 dotnet class
Submitted: 2007-06-24 14:26 UTC Modified: 2007-07-17 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: mona dot arabi at yahoo dot co dot uk Assigned:
Status: No Feedback Package: COM related
PHP Version: 5.2.3 OS: windows xp 2002 sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 + 24 = ?
Subscribe to this entry?

 
 [2007-06-24 14:26 UTC] mona dot arabi at yahoo dot co dot uk
Description:
------------
i can't instanciate an object from .net

Reproduce code:
---------------
<?
$test = new DOTNET("System", "System.Diagnostics.Process"); 
?>

WHILE
?php
 $stack = new DOTNET("mscorlib", "System.Collections.Stack"); 
  $stack->Push(".Net"); 
 $stack->Push("Hello "); 
  echo $stack->Pop() . $stack->Pop(); 
?>
WORKING

 

Expected result:
----------------
CREATING AN OBJECT TO PROCESS

Actual result:
--------------
Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070002] The system cannot find the file specified. ' in C:\webs\test\index.php:7 Stack trace: #0 C:\webs\test\index.php(7): dotnet->dotnet('System', 'System.Diagnost...') #1 {main} thrown in C:\webs\test\index.php on line 7

my php
PHP 5.2.3 (cli) (built: may 31 2007 09:37:22)
copyright (c) 1997-2007 THE PHP GROUP
Zend Engin v2.2.0 , copyright(c)1998-2007 zend Technologies.

Apache/2.0.59 (Win32)




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-24 16:03 UTC] mona dot arabi at yahoo dot co dot uk
i mean that this code is working 
?php
 $stack = new DOTNET("mscorlib", "System.Collections.Stack"); 
  $stack->Push(".Net"); 
 $stack->Push("Hello "); 
  echo $stack->Pop() . $stack->Pop(); 
?>
but this 

<?
$test = new DOTNET("System", "System.Diagnostics.Process"); 
?>

generate

Fatal error: Uncaught exception 'com_exception' with message 'Failed to
instantiate .Net object [CreateInstance] [0x80070002] The system cannot
find the file specified. ' in C:\webs\test\index.php:7 Stack trace: #0
C:\webs\test\index.php(7): dotnet->dotnet('System',
'System.Diagnost...') #1 {main} thrown in C:\webs\test\index.php on line
7
 [2007-07-09 11:19 UTC] jani@php.net
See bug #29800 for more info.

 [2007-07-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-12-17 15:01 UTC] cpriest at warpmail dot net
<?php
 $stack = new DOTNET("mscorlib", "System.Collections.Stack"); 
  $stack->Push(".Net"); 
 $stack->Push("Hello "); 
  echo $stack->Pop() . $stack->Pop(); 
?>

is no longer working either in 5.3.1

<?
$test = new DOTNET("System", "System.Diagnostics.Process"); 
?>

This also still fails in 5.3.1 -- it appears as though DOTNET functionality is not going to be fixed, there are numerous bug reports and no activity.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 15:01:29 2024 UTC