Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1453

Don't change types of arguments when serializing with thrift php extension

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9
    • C++ - Library
    • None

    Description

      From c630a1a3d7485678176c53e365d20b38db17f8bd Mon Sep 17 00:00:00 2001
      From: Dan 'Sabretooth' Weatherford <dweatherford@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

      Attachments

        Activity

          People

            davejwatson@fb Dave Watson
            davejwatson@fb Dave Watson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: