I'm running php version 4.2.2. under Windows 2000. I'm trying to use the oracle dll's (code below). When I run the script from dos I get the nasty error message
"The instruction at '0x77f83a33' referenced memory at '0x00000010'. The memmory could not be 'read'."
If I click Cancel to debug I get the following error message,
"Unhandled exception in php.exe (NTDLL.DLL): 0xC0000005: Access Violation".
Is this something anyone else has come across and if so are there any work arounds? Should I report errors of this kind and if so to whom should I report them?
<?php
// create connection
$conn = ora_login("user","pw","host") or die("Couldn't logon.");
$curs = ora_open($conn);
ora_commitoff($conn);
$query = sprintf("select * from cat");
/ Short Version /
ora_do($conn, $query);
$ncols = ora_numcols($curs);
$nrows = ora_numrows($curs);
printf("Result size is $ncols cols by $nrows rows.");
for ($i=0; $i<$ncols; $i++)
{
printf("col[%s] = %s type[%d] = %s",
$i, ora_columnname($curs, $i),
$i, ora_columntype($curs, $i));
}
for ($j=0; $j<$nrows; $j++)
{
for ($i=0; $i<$ncols; $i++)
{
$col = ora_getcolumn($curs, $i);
printf("val[%d, %d] = %s * ", $j, $i, ora_getcolumn($curs, $i));
}
printf("");
}
?>