Req #70268 [Opn->Fbk]: support dynamic DotNet classes
| From: | cmb@php.net | Date: | Sun, 16 Aug 2015 13:30:07 +0000 |
| Subject: | Req #70268 [Opn->Fbk]: support dynamic DotNet classes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195245@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70268&edit=1
ID: 70268
Updated by: cmb@php.net
Reported by: admin at angosso dot net
Summary: support dynamic DotNet classes
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: COM related
Operating System: Windows
PHP Version: 5.6.12
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2015-08-14 11:20:28] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70268&edit=1