ID:               39145
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sbreiler at gmx dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         COM related
 Operating System: Windows XP SP2
 PHP Version:      5.2.0RC5
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

dupe of bug #34564


Previous Comments:
------------------------------------------------------------------------

[2006-10-13 10:25:13] sbreiler at gmx dot de

In Delphi it looks like this (and is working):

[code]
procedure TForm1.Button1Click(Sender: TObject);
var
  mycom: Variant;
  FunctionName: String;
begin
  mycom := CreateOleObject('my.own'); // or CreateComObject
  mycom.myFunction(FunctionName);
  ShowMessage(FunctionName);
end;
[/code]

------------------------------------------------------------------------

[2006-10-13 10:19:29] sbreiler at gmx dot de

Description:
------------
Please have a look at the code below. I also tried to use a Variant,
which doesn't worked out for me. Also "$mycom->myFunction(
&$FunctionName );" doesn't work.

Tried with PHP version "5.2.0.0 RC6-dev" and "5.1.6.6"

Reproduce code:
---------------
$mycom = new COM('my.own');
settype($FunctionName,"String");
//$FunctionName = 'a'; // **doesn't work either
$mycom->myFunction( $FunctionName ); /* VT_PTR [26] [out] --> VT_BSTR
[8]  */
var_dump($FunctionName); // '' or 'a'**

Expected result:
----------------
'something'

Actual result:
--------------
'' or 'a' (when using "$FunctionName = 'a';")


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39145&edit=1

Reply via email to