php - Pass value by reference to COM object function -
i have com object, contains function:
[id(1)] hresult tst1([out] long * l, [out, retval] long * e );
create object , use in php , pass parameter reference:
$i=5; $f = new com('app.myobj'); $f->tst1(&$i);
got error:
call-time pass-by-reference has been deprecated
if pass $i
without &
(that should define "by reference") have same value of i
equals 5
after tst1()
execution
$i=5; $f = new com('app.myobj'); $f->tst1($i);
but inside of com object function changes passed value
stdmethodimp csomeobject::tst1(long* e) { *e=3; return s_ok; }
how pass reference in php
while calling com
object function?
Comments
Post a Comment