[ 
https://issues.apache.org/jira/browse/THRIFT-1580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471311#comment-13471311
 ] 

Roger Meier commented on THRIFT-1580:
-------------------------------------

I have
{noformat}
php -r 'echo PHP_INT_MAX;'
9223372036854775807
cat /etc/debian_version
6.0.6
uname -a
Linux chaos 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
dpkg -l | grep php
ii  php5-cli                             5.3.3-7+squeeze14                 
command-line interpreter for the php5 scripting language
ii  php5-common                          5.3.3-7+squeeze14                 
Common files for packages built from the php5 source
ii  php5-dev                             5.3.3-7+squeeze14                 
Files for PHP5 module development
ii  phpunit                              3.4.14-1                          Unit 
testing suite for PHP5

{noformat}
and test suite fails here:
{noformat}
--- Expected
+++ Actual
@@ @@
             [i32_thing] => 1073741824
-            [i64_thing] => 1152921504606846976
+            [i64_thing] => 1152921504606847000
         )

     [i32_thing] => 32768
{noformat}
                
> thrift type i64 java to php serialize/deserealize not working
> -------------------------------------------------------------
>
>                 Key: THRIFT-1580
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1580
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>    Affects Versions: 0.8
>         Environment: "Ubuntu Server Cloud Guest 11.10 (Oneiric Ocelot)" - 
> this for AWS
> Nginx + PHP5-FPM
>            Reporter: Sergei Labutin
>            Priority: Critical
>
> I create struct
> struct Request \{
> 1: optional i64 uid,
> 2: optional string name
> \}
> on java client make serealize. On PHP without extention deserealize and have 
> uid as null.
> Any other types work normally:
> struct Request \{
> 1: optional i32 uid,
> 2: optional string name
> \}
> struct Request \{
> 1: optional string uid,
> 2: optional string name
> \}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to