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
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: 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: Sat Dec 21 12:01:31 2024 UTC