|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44240 No data returned by ODBC
Submitted: 2008-02-25 08:32 UTC Modified: 2020-10-11 04:22 UTC
Avg. Score:4.0 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:2 (50.0%)
From: johann dot maurer at bfh dot ch Assigned: cmb (profile)
Status: No Feedback Package: ODBC related
PHP Version: 5.2.5 OS: Win2003 SP2
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: johann dot maurer at bfh dot ch
New email:
PHP Version: OS:


 [2008-02-25 08:32 UTC] johann dot maurer at bfh dot ch
OS: Win2003 SP2
IIS: 6.0.3790
ISAPI - connection

No data is returned from DB (Sybase-Anywhere) over ODBC interface since running php 5.2.5. Connection and select are OK, but no data is returned.
I tested without changing anything on the ODBC setup, only switched PHP-Version, restarted iis.


Reproduce code:
$dbo = odbc_connect( 'rektor-php','odbc_test','tester');
echo "odbc = $dbo <br>";
$qry = "select * from rektor.odbc_Test where Data like 'a%' ";
echo "qry = $qry <br>\n";
$dbid = odbc_exec($dbo,$qry);
echo "dbid = $dbid <br>";
$res = odbc_result_all($dbid);
if ($res == false) echo 'fetch = false! <br>';
echo "fetch = '$res' <br>";

Expected result:
Testoutput with php 5.1.2

odbc = Resource id #3
qry = select * from rektor.odbc_Test where Data like 'a%'
dbid = Resource id #4
ColID	Data
1	aaaaaaaaa
2	abcdefgh
fetch = '2'  

Actual result:
Testoutput with php 5.2.5

odbc = Resource id #3
qry = select * from rektor.odbc_Test where Data like 'a%'
dbid = Resource id #4
ColID	Data
fetch = '2' 

Comment: Two blank rows returned.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-01 12:34 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-01 12:34 UTC]
Can you still reproduce this with any of the actively supported
PHP versions[1]?

[1] <>
 [2020-10-11 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 23:01:32 2024 UTC