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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jan 13 14:01:29 2025 UTC