Orkut Gmail Agenda Docs Web mais »
Grupos visitados recentemente | Ajuda | Acessar
Página inicial dos Grupos do Google
Mensagem sobre o tópico Problem when using type DOUBLE in SOAP

Visualizar analisado - Mostrar apenas o texto da mensagem ??

MIME-Version: 1.0
Received: by 10.150.228.12 with SMTP id a12mr19391ybh.13.1213802587615; Wed, 
	18 Jun 2008 08:23:07 -0700 (PDT)
Date: Wed, 18 Jun 2008 08:23:07 -0700 (PDT)
In-Reply-To: <6fa2d4a5-eb03-42b4-8b84-cd5de1d3d47e@27g2000hsf.googlegroups.com>
X-IP: 195.212.29.67
References: <bf220dbb0806161659s3ac8d1ceq42a36618960111b9@mail.gmail.com> 
	<6fa2d4a5-eb03-42b4-8b84-cd5de1d3d47e@27g2000hsf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.7) 
	Gecko/20070914 Firefox/2.0.0.7,gzip(gfe),gzip(gfe)
Message-ID: <9e30712d-94fd-496f-8cc5-f0fc117f6954@z72g2000hsb.googlegroups.com>
Subject: Re: Problem when using type DOUBLE in SOAP
From: Matthew Peters <matthew.f.pet...@googlemail.com>
To: phpsoa <phpsoa@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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
SDO.

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 127.0.0.1] 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 <matthew.f.pet...@googlemail.com>
wrote:
> 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 127.0.0.1] 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 127.0.0.1] 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" <silvan...@gmail.com> 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,

Criar um grupo - Grupos do Google - Página inicial do Google - Termos de Uso - Política de Privacidade
©2009 Google