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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -