Bug #10875: In COM Function: Return Var is emty

From: Date: Tue, 15 May 2001 11:04:49 +0000
Subject: Bug #10875: In COM Function: Return Var is emty
Groups: php.dev 
Request: Send a blank email to php-dev+get-55330@lists.php.net to get a copy of this message
From: ws@olapline.de Operating system: Win2000 PHP version: 4.0.5 PHP Bug Type: COM related Bug description: In COM Function: Return Var is emty here my problem with COM in PHP. <? echo "J-Server in der dynamischen PHP-Web-Site. <br><br>"; $jServer = new COM("jexeserver") or DIE ("Connect zum J Server ist nicht möglich"); $jServer->Show(1); $jServer->Log(1); $jServer->Do("0!:0 <(1!:40''),'system\extras\config\profile.ijs'"); $jServer->Do("load'd:\\j_tm1dll\\j\\tm1api.ijs'"); $jServer->Do("load'd:\\j_tm1dll\\j\\tm1con.ijs'"); $jServer->Do("load'd:\\j_tm1dll\\j\\tm1prop.ijs'"); $jServer->Do("load'd:\\j_tm1dll\\j\\tm1view.ijs'"); $jServer->Do("Tm1On''"); $jServer->Do("Tm1AdmSet'OLAPLINE01'"); $jServer->Do("SrvCon'zeiterf';'Admin';''"); #$jServer->Do("NN=:'XXX'"); $Var = "xxx"; $jServer->SetB("NN", $Var); // In the COM server: NN = $Var $jServer->Do("NN"); // Display NN in the COM server $jServer->Do("NN=:'yyy'"); // In the COM server: NN = "yyy" $jServer->GetB("NN", &$Var); // <=============== There is my problem: (& is a refernce) // In the COM server &$Var = NN echo $Var; // echo $Var Output: xxx and not yyy ?!? $jServer->Quit(); ?> Is there a bug in my code or is this a bug in COM ??? -- Edit Bug report at: http://bugs.php.net/?id=10875&edit=1

« previous php.dev (#55330) next »