|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23590 decimal part uncomplete for real type
Submitted: 2003-05-12 05:44 UTC Modified: 2003-05-12 06:11 UTC
From: adrien_comlan at yahoo dot fr Assigned:
Status: Not a bug Package: Sybase-ct (ctlib) related
PHP Version: 4.3.2RC2 OS: w2k
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:
Bug Type:
From: adrien_comlan at yahoo dot fr
New email:
PHP Version: OS:


 [2003-05-12 05:44 UTC] adrien_comlan at yahoo dot fr
non significant zero are not return with sybase_fetch_ 

ex : decimal(10,2)

14.3 is return instead of 14.30 in database
100 is return instead of 100.00 in database

db : ase 11.9.2
os : w2k

$ls_query = "select * from mytable";
$res = sybase_query($ls_query,$cnx);
  while ($op_by_int = sybase_fetch_array($res)) 
      while (list( $key, $value ) = each( $op_by_int )) 
               echo "<br>$key => $value";



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-12 06:05 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Nothing wrong here...
 [2003-05-12 06:11 UTC] adrien_comlan at yahoo dot fr
php  4.0.6 use to return 14.30 when 14.30 is in the table and not 14.3 as now
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 22:03:34 2021 UTC