|  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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 + 39 = ?
Subscribe to this entry?

 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 23:01:29 2024 UTC