Ouch, I have just seen that I made an error. It is the use of
trigger_error on its own that is losing precision when I print the

If I use trigger_error(print_r($response_object, true)) then I see
that the precision is still there in the SDO:
[Wed Jun 18 16:20:39 2008] [error] [client] PHP Notice:
SDO_DataObjectImpl Object\n(\n    [getDoubleReturn] => 3210.8765\n)\n
in C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on line 97

I need to look further....

On Jun 17, 1:52 pm, Matthew Peters <[EMAIL PROTECTED]>
> Hi Silvano,
> Indeed, this is not good. I picked up the sample from the defect that
> you raised.
> I added a couple of trigger_errors to Bindings/soap/Wrapper.php to
> look at the return values.
> If I show the return value before we mess with it, it looks fine:
> [Tue Jun 17 13:45:20 2008] [error] [client] PHP Notice:
> 3210.8765 in C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on
>  line 99
> but if I look at the $response_object, which is an SDO and print that
> out, it has lost precision
> [Tue Jun 17 13:45:20 2008] [error] [client] PHP Notice:
> object(SDO_DataObject)#11 (1) {getDoubleReturn=>"3.211e+003"} i
> n C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on line 100
> So, this is something to do with assigning the value into an SDO. I
> will send a note to Caroline (although of course she will see this)
> and see if she knows what might have happened here.
> Matthew
> On 17 Jun, 00:59, "Silvano Girardi Jr" <[EMAIL PROTECTED]> wrote:
> > Gentlemen,
> > there is a critical issue (at least for me) when dealing with double values
> > using SOAP.
> > Example: when returning 3210.8765, you get: 3211.
> > I reported it as a bug:http://pecl.php.net/bugs/bug.php?id=14155
> > FYI, when I try with REST-RPC or not using SCA at all (with SoapServer), it
> > works fine: returns the same double value.
> > I appreciate if someone could take a look on this asap.
> > Thanks,
> > Silvano Girardi Jr.
You received this message because you are subscribed to the Google Groups 
"phpsoa" group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to