php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3350 wrong results from sybase_fetch_row and sybase_fetch_array
Submitted: 2000-01-29 18:00 UTC Modified: 2000-05-22 03:41 UTC
From: jl543 at hotmail dot com Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0 Beta 3 OS: Redhat 6.0
Private report: No CVE-ID: None
 [2000-01-29 18:00 UTC] jl543 at hotmail dot com
This bug is making 4.0Beta 3 unusable with sybase for me.
Please advice on a workaround!!

I have a simple table like this:
     create table UserInfo
(
    uID               numeric(10,0)          not null,
    userName          varchar(32)            not null,
    passwd            char(38)               null    ,
    constraint PK_USERINFO primary key (uID)
)

With the following php code, I get wrong passwd out 
1 out of every 5 times or so.

  $q= sybase_query("select uID,userName,passwd
                   from UserInfo  where userName='$username'", $dblink);
 
  while($qarray = sybase_fetch_row($q)) {
echo $qarray[2];
   $pass  = $qarray[2];   
echo $pass;
    }
----

results:
$qarray[2] is always correct;
$pass is wrong 1/5 of the times.

The behavior is similiar if I use sybase_fetch_array.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-02 11:05 UTC] joey at cvs dot php dot net
Try sybase ct-lib, PHP4b4 or a snapshot (http://snaps.php.net).
Let me know if you still have problems.
 [2000-05-22 03:41 UTC] joey at cvs dot php dot net
No reply...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC