From: josep dot gorro at trendcomms dot es Operating system: WindowsNT SP6a PHP version: Irrelevant PHP Bug Type: ODBC related Bug description: nested odbc_fetch_row produces an error
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 -- Edit bug report at http://bugs.php.net/?id=26891&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26891&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26891&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26891&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26891&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26891&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26891&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26891&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26891&r=support Expected behavior: http://bugs.php.net/fix.php?id=26891&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26891&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26891&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26891&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26891&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26891&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26891&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26891&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26891&r=float