php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4509 sybase_query return other value than valid resultset or FAILURE
Submitted: 2000-05-18 14:32 UTC Modified: 2005-03-31 16:13 UTC
From: dan at fio dot cz Assigned:
Status: Wont fix Package: Sybase (dblib) related
PHP Version: 3.0.16 OS: FreeBSD 3.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dan at fio dot cz
New email:
PHP Version: OS:

 

 [2000-05-18 14:32 UTC] dan at fio dot cz
if submitted query is valid and executed, but it return nothing then php3_sybase_query may return TRUE (but TRUE isn't valid resultset).
Relevant part of code (functions/sybase.c->php3_sybase_query)
--------------------------------
num_fields = dbnumcols(sybase_ptr->link);
if (num_fields<=0) {
       RETURN_TRUE;
}
--------------------------------
So sybase_query end OK (via return on line 3 of listed code), but calls to other functions (as sybase_num_rows) complain that 1 isn't valid resultset.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC