php.net |  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
Votes:5
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
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: 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
Description:
------------
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.


Thanks
Johann

Reproduce code:
---------------
<?php
$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>";
print_r($a_res);
odbc_free_result($dbid);
?>


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.

Patches

Pull Requests

History

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

[1] <https://www.php.net/supported-versions.php>
 [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: Mon Dec 30 14:01:28 2024 UTC