|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-13 10:19 UTC] 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';")
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
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]