Closed GoogleCodeExporter closed 9 years ago
Hello again,
we fixed the problem by modifying Hessian2Writer.php.
The function writeDouble($value) seems to have a wrong range of values in line
319:
if($frac == 0 && $this->between($value, -127, 2047)){
...
It has tob be
if($frac == 0 && $this->between($value, -128, 128)){
...
please see http://hessian.caucho.com/doc/hessian-serialization.html##double
for that.
I hope this fixed the wrong behavior for all double values.
regards
marc
Original comment by nesnnaho...@gmail.com
on 15 Feb 2011 at 10:10
Hello Marc
Your are right, the float values the service returns were incorect.
I tested it and corrected the affected file. I created a unit test in
base_test.php (line 66) to check that the service returns back correct
scalar values. The distribution package will be updated today.
Thank you for your support!
Regards
Manolo
Original comment by vegeta...@gmail.com
on 15 Feb 2011 at 4:55
Original issue reported on code.google.com by
nesnnaho...@gmail.com
on 14 Feb 2011 at 2:44