Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CCCF3200D51 for ; Fri, 22 Dec 2017 13:55:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CB314160BFD; Fri, 22 Dec 2017 12:55:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1DE6B160C19 for ; Fri, 22 Dec 2017 13:55:06 +0100 (CET) Received: (qmail 30987 invoked by uid 500); 22 Dec 2017 12:55:06 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 30976 invoked by uid 99); 22 Dec 2017 12:55:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2017 12:55:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F0725C65B8 for ; Fri, 22 Dec 2017 12:55:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kSn6Ysn3GSdP for ; Fri, 22 Dec 2017 12:55:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F07195F1BA for ; Fri, 22 Dec 2017 12:55:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 32D84E09A5 for ; Fri, 22 Dec 2017 12:55:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AA4D4240F2 for ; Fri, 22 Dec 2017 12:55:00 +0000 (UTC) Date: Fri, 22 Dec 2017 12:55:00 +0000 (UTC) From: "James E. King, III (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (THRIFT-4432) thrift compiler changed my struct'name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Dec 2017 12:55:08 -0000 [ https://issues.apache.org/jira/browse/THRIFT-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James E. King, III updated THRIFT-4432: --------------------------------------- Issue Type: Question (was: Bug) > thrift compiler changed my struct'name > -------------------------------------- > > Key: THRIFT-4432 > URL: https://issues.apache.org/jira/browse/THRIFT-4432 > Project: Thrift > Issue Type: Question > Components: PHP - Compiler > Affects Versions: 0.10.0 > Reporter: Ashenp > > I defined a struct in thrift file with underlined name: > struct invite_record_change { > 1: required i32 record_id, > 2: optional i32 clear_state, > 3: optional i32 bonus, > 4: optional i32 settle_state, > 5: optional i32 paid_at, > 6: optional i32 final_clear_time, > 7: optional string remark, > } > and this name has been used by a funciton : > bool invite_record_status_update(1: invite_record_change record_change) > > but in generated php file, my struct name had been modified when I use it as a parameter: > public function invite_record_status_update(\talaris\wallet\InviteRecordChange $record_change) > { > $this->send_invite_record_status_update($record_change); > return $this->recv_invite_record_status_update(); > } > Is it's a BUG? Or I missed something in Thrift Guide -- This message was sent by Atlassian JIRA (v6.4.14#64029)