php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15897 pretty random replies while using odbc functions
Submitted: 2002-03-06 09:26 UTC Modified: 2002-06-14 13:31 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: adasi at grubno dot da dot ru Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.1.2 OS: Linux
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: adasi at grubno dot da dot ru
New email:
PHP Version: OS:

 

 [2002-03-06 09:26 UTC] adasi at grubno dot da dot ru
I'm wondering why code like this one:

$conn = odbc_pconnect("$database", "$username", "$password");
$query = "select name from table";
$a=$query;
$table = odbc_do($conn,$query);
echo $query;
odbc_fetch_row($table);
echo odbc_result($table,1);

work but if I comment out $a=query, echo $query or thing that should not make any difference it's not. It's not a test-suite (i'll send it as fast as I would get it). There's probably bug in odbc_fetch_row as all problems that I had were connected with it.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-14 13:31 UTC] kalowsky@php.net
I'm marking this as closed as I cannot reproduce this locally, nor can some other users who have tried.  

Few suggestions though, update your ODBC, update your PHP, and turn on ODBC logging/tracing to see if its your DB, driver, or PHP.  
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 02:01:32 2025 UTC