#26891 [NEW]: nested odbc_fetch_row produces an error
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=26891edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26891r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26891r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26891r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26891r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26891r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26891r=needscript Try newer version: http://bugs.php.net/fix.php?id=26891r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=26891r=support Expected behavior: http://bugs.php.net/fix.php?id=26891r=notwrong Not enough info:http://bugs.php.net/fix.php?id=26891r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=26891r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26891r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26891r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26891r=dst IIS Stability: http://bugs.php.net/fix.php?id=26891r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=26891r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26891r=float
#26891 [Fbk-Opn]: nested odbc_fetch_row produces an error
ID: 26891 User updated by: josep dot gorro at trendcomms dot es Reported By: josep dot gorro at trendcomms dot es -Status: Feedback +Status: Open Bug Type: ODBC related Operating System: WindowsNT SP6a PHP Version: Irrelevant New Comment: The backend database is Oracle. Previous Comments: [2004-01-13 09:45:42] [EMAIL PROTECTED] Using what database backend? [2004-01-13 05:49:50] 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 -- Edit this bug report at http://bugs.php.net/?id=26891edit=1
#25288 [NEW]: Wrong JulianDayCount
From: josep dot gorro at trendcomms dot es Operating system: WinNT PHP version: 4.3.1 PHP Bug Type: Calendar related Bug description: Wrong JulianDayCount Description: I'm generating a function to calculate a date in Julian day count to be used in excel spreadsheet. Always I obtain a 2 days difference. Is this a bug? Reproduce code: --- ?php // This is the date that I would to convert $jd1 = GregorianToJD (8,28,2003); print $jd1\n; $gregorian1 = JDToGregorian ($jd1); print $gregorian1\n; // This is the initial excel's date counter $jd2 = GregorianToJD (1,1,1900); print $jd2\n; $gregorian2 = JDToGregorian ($jd2); print $gregorian2\n; // This is the REAL (not bogus) day counter $total=$jd1 - $jd2 + 2; print Excel value: .$total; ? Expected result: Without the correction ($total=$jd1 - $jd2;) the result is: 2452880 8/28/2003 2415021 1/1/1900 Real counter: 37859 Whit the correction ($total=$jd1 - $jd2 + 2;) the result is: 2452880 8/28/2003 2415021 1/1/1900 Real counter: 37861 First one isn't correct, second one is fine. -- Edit bug report at http://bugs.php.net/?id=25288edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25288r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25288r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25288r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25288r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25288r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25288r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25288r=support Expected behavior: http://bugs.php.net/fix.php?id=25288r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25288r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25288r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25288r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25288r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25288r=dst IIS Stability: http://bugs.php.net/fix.php?id=25288r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25288r=gnused