[ https://issues.apache.org/jira/browse/THRIFT-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13880837#comment-13880837 ]
grayson commented on THRIFT-1453: --------------------------------- this bug can easily fix,thank you for your reply. > Don't change types of arguments when serializing with thrift php extension > --------------------------------------------------------------------------- > > Key: THRIFT-1453 > URL: https://issues.apache.org/jira/browse/THRIFT-1453 > Project: Thrift > Issue Type: Improvement > Components: C++ - Library > Reporter: Dave Watson > Assignee: Dave Watson > Priority: Minor > Fix For: 0.9 > > Attachments: > 0004-Don-t-change-types-of-arguments-when-serializing-wit.patch, > thrift-1453.patch > > > From c630a1a3d7485678176c53e365d20b38db17f8bd Mon Sep 17 00:00:00 2001 > From: Dan 'Sabretooth' Weatherford <dweatherf...@fb.com> > Date: Fri, 25 Jun 2010 03:39:58 +0000 > Subject: [PATCH 4/5] Don't change types of arguments when serializing with > thrift php extension > Summary: > If the PHP variable type is not compatible with the desired serialization > type, > we'll copy the variable before doing the conversion. If it is compatible, this > just adds a little refcount fiddling, so it shouldn't slow down much. > Test Plan: > Passed a bool, int, and double to functions expecting strings, and verified > that the types were unchanged afterwards. (Previously, they'd all end up as > strings.) > DiffCamp Revision: 126908 > Reviewed By: dreiss > CC: dreiss, kholst, thrift-team@lists > Revert Plan: > OK -- This message was sent by Atlassian JIRA (v6.1.5#6160)