php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58235 Problem when returning DOUBLE values with SOAP
Submitted: 2008-06-16 19:56 UTC Modified: 2017-01-10 08:11 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: silvano@php.net Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.2.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: silvano@php.net
New email:
PHP Version: OS:

 

 [2008-06-16 19:56 UTC] silvano@php.net
Description:
------------
There is a critical issue (at least for me) when dealing with double values using SOAP.

The values get truncated/rounded and I have to use string instead of double.

Please see the zipped code in the URL below.

The result is like:

3211

SDO_DataObjectImpl Object
(
    [samples] => SDO_DataObjectList Object
        (
            [0] => SDO_DataObjectImpl Object
                (
                    [double] => 10.88
                    [string] => 10.8765
                )

            [1] => SDO_DataObjectImpl Object
                (
                    [double] => 210.9
                    [string] => 210.8765
                )

            [2] => SDO_DataObjectImpl Object
                (
                    [double] => 3211
                    [string] => 3210.8765
                )
(...)

Reproduce code:
---------------
http://www.silvano.pro.br/sca_sdo/Samples.zip

Expected result:
----------------
If I return 3210.8765 to client, I expect him to get the same value.

Actual result:
--------------
If I return 3210.8765 to client, he gets 3211

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-24 18:55 UTC] cem@php.net
This is now http://issues.apache.org/jira/browse/TUSCANY-2439. A patch has been submitted. A corresponding change will also be needed in the PHP SDO extension.
 [2017-01-10 08:11 UTC] kalle@php.net
-Status: Assigned +Status: Suspended
 [2017-01-10 08:11 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 [2017-01-10 08:11 UTC] kalle@php.net
-Assigned To: cem +Assigned To:
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 00:01:24 2020 UTC