From:             [EMAIL PROTECTED]
Operating system: WinNT 5.0
PHP version:      4.2.0
PHP Bug Type:     ODBC related
Bug description:  odbc_next_result stopped working

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.
-- 
Edit bug report at http://bugs.php.net/?id=17066&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17066&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17066&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17066&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17066&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17066&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17066&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17066&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17066&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17066&r=globals

Reply via email to