From: [EMAIL PROTECTED] Operating system: Windows NT4 SP6 PHP version: 4.1.1 PHP Bug Type: ODBC related Bug description: OleMainThreadWndName: php.exe application error
I am running PHP 4.1.1 as a CGI with Apache 1.3.20. I have an Oracle database, version 8.1.7, running on the same machine. I am trying to read the database using ODBC. I am using the MS ODBC driver for Oracle 2.573.6019.00. I get the same result using an Oracle ODBC driver. I get the following error: "OleMainThreadWndName: php.exe application error" "The instruction at 0x77f6cc80 referenced memory at 0x00000031. The memory could not be read." I can connect successfully to the database with no errors using OCI. ---- Script ------ <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <table> <td><b>Dname</b></td> </tr> <?php $connectionstring = odbc_pconnect("ODBCMSORACLE", "scott", "tiger"); //$Query = "SELECT dname FROM dept"; //$queryexe = odbc_do($connectionstring, $Query); //odbc_fetch_row($queryexe); //$fname = odbc_result($queryexe, 1); //print ("<tr><td>$fname</td></tr>"); odbc_close($connectionstring); ?> </table> </body> </html> ---- End Script -- -- Edit bug report at: http://bugs.php.net/?id=15281&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]