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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mona dot arabi at yahoo dot co dot uk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Dec 26 14:01:30 2024 UTC