php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17066 odbc_next_result stopped working
Submitted: 2002-05-07 05:04 UTC Modified: 2002-08-13 19:55 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jasonh at trurocollege dot ac dot uk Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.2.0 OS: WinNT 5.0
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:
MUST BE VALID
Solve the problem:
45 - 25 = ?
Subscribe to this entry?

 
 [2002-05-07 05:04 UTC] jasonh at trurocollege dot ac dot uk
The following code worked fine in 4.0.6 for a trivial stored procedure (in MSSQL7) that returns multiple result sets, but in 4.2.0 it hangs (and then timeouts) at the first call to odbc_next_result().

  $conn = odbc_connect($ODBC_CONN, $USER, $PASS);
  $rs = odbc_exec($conn,$SP);
  do {
    while (odbc_fetch_into($rs,$row)) {
      foreach($row as $f => $v) {
        print $f . " = " . $v . "<BR>";
      }
    }
    print "<BR>";
  } while(odbc_next_result($rs));

Without the outer loop for odbc_next_result() the code works fine and returns the data in the first result set, as expected.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-07 05:10 UTC] derick@php.net
Please try the latest stable snapshot on snaps.php.net/win32 and report back if it's fixed there.

Derick
 [2002-08-13 19:55 UTC] kalowsky@php.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 "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC