From: [EMAIL PROTECTED] Operating system: AIX 4.3.3 PHP version: 4.1.2 PHP Bug Type: ODBC related Bug description: connected to DB2: odbc_error() gives strange results
Trying odbc_error and odbc_errormsg I got strange strings back instead of the actual error messages; after saving again and reloading I got the correct Error/Message; after new reload I got Strange results again. Code: ===== function printerror($code, $msg, $method="array") { print "<h2>An Error has occured</h2><table border=0><tr><td><b>Code: $code</b></td><td>Message: $msg</td></tr></table>";} $res = odbc_prepare($conn, $stmt); if(!(odbc_execute($res))) printerror(odbc_error($conn),odbc_errormsg($conn)); Results: ======== Code: %Ãt % Message: ÃÄ $‘D ÔH Code: %ó` % Message: òt %óô %ñô Code: hp Message: major It seems I get parts of my Scripts back... -- Edit bug report at http://bugs.php.net/?id=17140&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17140&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17140&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17140&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17140&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17140&r=support Expected behavior: http://bugs.php.net/fix.php?id=17140&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17140&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17140&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17140&r=globals