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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jl543 at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sun Mar 07 16:01:23 2021 UTC