php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26891 nested odbc_fetch_row produces an error
Submitted: 2004-01-13 05:49 UTC Modified: 2004-04-08 11:06 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: josep dot gorro at trendcomms dot es Assigned:
Status: Not a bug Package: ODBC related
PHP Version: Irrelevant OS: WindowsNT SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: josep dot gorro at trendcomms dot es
New email:
PHP Version: OS:

 

 [2004-01-13 05:49 UTC] josep dot gorro at trendcomms dot es
Description:
------------
I'm trying to execute a query using the same ODBC connect ID that is customized by previous query in the same code.
If I comment second odbc_fetch_row runs fine. With this one uncommented a Dr.Watson on server appears.

Reproduce code:
---------------
// $connect is the connect ID to the database previously
// generated without problems
$query1="SELECT F11, F12 FROM T1";
$result1=odbc_exec($connect,$query1);
while(odbc_fetch_row($result1)) {
  $query2="SELECT F21, F22 FROM T2";
  $result2=odbc_exec($connect,$query2);
  while(odbc_fetch_row($result2)) { // HERE IS THE ERROR
    do_anything;
  }
}

Actual result:
--------------
In server appears a Dr.Watson error (GPF) and in Apache's error log a line:
Premature end of script headers: c:/php/php.exe

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-13 09:45 UTC] kalowsky@php.net
Using what database backend?
 [2004-01-14 01:26 UTC] josep dot gorro at trendcomms dot es
The backend database is Oracle.
 [2004-04-08 11:06 UTC] sniper@php.net
There is no such PHP versions as "Irrelevant"..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 03:01:29 2024 UTC