php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1376 return wrong value (with decimal dot) from numeric(7.0) fields
Submitted: 1999-05-04 00:58 UTC Modified: 1999-11-05 03:57 UTC
From: gena at svt dot unity dot net Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0.7 OS: linux Redhat 5.2
Private report: No CVE-ID: None
 [1999-05-04 00:58 UTC] gena at svt dot unity dot net

$art = sybase_query("SELECT id_article from articles",1); 

$arr_art = sybase_fetch_array($art); 
$data_id=$arr_art[0]; 
} 

$data_id receive value 1.0 not 1, and later, select where id=$data_id don't work. 
This select only work after 
settype($data_id,integer); 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-05 03:57 UTC] thies at cvs dot php dot net
please try lastest CVS
 [2003-02-21 04:17 UTC] c dot villemagne at circo dot fr
I have a same bug but i am in php 4.3.0.

Please help me!
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 09:01:24 2020 UTC