View Single Post
  #1 (permalink)  
Old 04-08-2008
xorax xorax is offline
Registered User
 
Name: Ivan Brykov
Organization: United Markets Information Syndicat
Project: Trading Platform Web Integration
 
Join Date: Oct 2007
Posts: 6
Unhappy Strange error in PHP

Hello everybody!

I'm currently stuck with Fatal PHP error that I cannot explain. Perhaps you guys can help me.

So.. in my .ice file there is a record in interface:

Code:
int apiTradesCalcProfit(string group, TradeRecord TrIn, out TradeRecord TrOut) throws ServerError;
I'm trying to call it from PHP like this:
PHP Code:
$initial->apiTradesCalcProfit($group$t$res); 
and it throws at me :
Code:
Fatal error:  Ice_ObjectPrx::apitradescalcprofit() : expected int value but received null in ice_test.php on line 53
At the same time it perfectly works in python:
Code:
res = initial.apiTradesCalcProfit(group, t)
What could cause this error?
Reply With Quote