|  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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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) {
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.


Add a Patch

Pull Requests

Add a Pull Request


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-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 22:03:41 2023 UTC