You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Dave Watson (Updated) (JIRA)" <ji...@apache.org> on 2011/12/07 23:20:40 UTC

[jira] [Updated] (THRIFT-1453) Don't change types of arguments when serializing with thrift php extension

     [ https://issues.apache.org/jira/browse/THRIFT-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Watson updated THRIFT-1453:
--------------------------------

    Attachment: 0004-Don-t-change-types-of-arguments-when-serializing-wit.patch
    
> 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
>            Priority: Minor
>         Attachments: 0004-Don-t-change-types-of-arguments-when-serializing-wit.patch
>
>
> From c630a1a3d7485678176c53e365d20b38db17f8bd Mon Sep 17 00:00:00 2001
> From: Dan 'Sabretooth' Weatherford <dw...@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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira