php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70268 support dynamic DotNet classes
Submitted: 2015-08-14 11:20 UTC Modified: 2015-08-30 04:22 UTC
From: admin at angosso dot net Assigned: cmb (profile)
Status: No Feedback Package: COM related
PHP Version: 5.6.12 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at angosso dot net
New email:
PHP Version: OS:

 

 [2015-08-14 11:20 UTC] admin at angosso dot net
Description:
------------
class allows you to instantiate a class from a .Net assembly and call its methods and access its properties. 

Test script:
---------------
DOTNET::__construct ( string $assembly_name , string $class_name [, int $codepage ] )
<?php
$stack = new DOTNET("varcorlib", "System.Collections.Stack");
 $stack->Push(".Net");
 $stack->Push("Hello ");
 echo $stack->Pop() . $stack->Pop();

Expected result:
----------------
$stack->Push(".Net");
 $stack->Push("Hello ");
 echo $stack->server() . $stack->server();
$manager->RegisterClass('varcorlib', 'System.IO.File', 'File');
$manager->RegisterClass('varcorlib', 'System.IO.FileOptions', 'FileOptions');
$file = $manager->Create('varcorlib', 'File');
$fileoptions = $manager->Create('varcorlib', 'System.IO.FileOptions')->Enum('Encrypted');

Actual result:
--------------
Dynamic load related : dynamic dotnet classes can't be called

Patches

var_php (last revision 2015-08-14 11:25 UTC by admin at angosso dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-15 17:46 UTC] cmb@php.net
-Summary: DotNet +Summary: support dynamic DotNet classes -Package: Dynamic loading +Package: COM related -Operating System: PHP_OS +Operating System: Windows
 [2015-08-16 13:30 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-08-16 13:30 UTC] cmb@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.
 [2015-08-18 14:11 UTC] admin at angosso dot net
-Status: Feedback +Status: Assigned
 [2015-08-18 14:11 UTC] admin at angosso dot net
The sample script that is whenever the server is called by any browser, it can reproduce stokées resources in the files, if you can do the bug will be perfect.
The SoapClient class provides a client for » SOAP 1.1, » SOAP 1.2 servers. It can be used in WSDL or non-WSDL mode.
$client = new SoapClient("some.php");
$client = new SoapClient("some/", array('proxy_host'     => "/var/www/httpdocs",
                                            'proxy_port'     => 8080));
$client = new SoapClient(null, array('location' => "http://.../soap.php",
                                     'uri'      => "http://test-uri/",
                                     'style'    => SOAP_DOCUMENT,
                                     'use'      => SOAP_LITERAL));
{
    ServerName.WebServiceName CallWebService = 
        new ServerName.WebServiceName();

    if(debug)
    {
// Auth credentials for the SOAP request.
        'login' => 'username',
        'password' => 'password',

        // Proxy url.
        'proxy_host' => 'example.com', // Do not add the schema here (http or https). It won't work.
        'proxy_port' => 8443, 
CallWebService.TimeOut = -1;
    }

    String sGetValue = CallWebService.MethodName();
    Label1.Text = sGetValue;
}
$result = $client->getTime();
 [2015-08-18 14:35 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2015-08-18 14:35 UTC] cmb@php.net
What has SOAP to do with DOTNET? Furthermore most of the provided
script is not even PHP.
 [2015-08-30 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 18:03:46 2023 UTC