I think something is missing here. The struct you show is MyRequest but this generated code is dealing with a MyResponse.
Can you send over your full .thrift file, more context in the generated code, and how you're invoking it? -----Original Message----- From: Balanagireddy Mudiam [mailto:[email protected]] Sent: Tuesday, March 09, 2010 2:20 PM To: [email protected] Subject: PHP error calling thrift method Hi, I am having the below request object and I am calling a method using thrift from php. struct MyRequest { 1: set<string> name, 2: i32 startDate, 3: i32 endDate, } When I execute my php, I get the following error. This warning is thrown from thrift generated code. The reason for the warning is $elem21(object) cannot be used as a key. Warning: Illegal offset type in Server.php on line 226 223 $elem21 = null; 224 $elem21 = new MyResponse(); 225 $xfer += $elem21->read($input); 226 $this->success[$elem21] = true; Any idea, how to resolve this issue. Thank you. Regards Bala Mudiam
