ID: 15281 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: ODBC related Operating System: Windows NT4 SP6 PHP Version: 4.1.1 New Comment:
Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-01-29 13:35:13] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=15281&edit=1