OCI8 on NT

[email protected] ("Florian Clever")
Newsgroups php.version4
Message-ID <[email protected]>
This is my test script:

<html>
<body>
<?php
dl("php_oci8.dll");

$con = OCILogon("XX", "XX", "XX");

$sql = "SELECT * FROM logins";
$stmt = OCIParse($con, $sql);
OCIExecute($stmt);

OCIFetch( $stmt );

print OCIResult($stmt, "LOGIN" );

OCIFreeStatement($stmt);
OCILogoff($con);
?>
</body>
</html>

But when I run this script I get the following messages:
Warning: Function registration failed - duplicate name - ocidefinebyname in
Unknown on line 0
..<snip>..
Warning: Function registration failed - duplicate name - ocifreecursor in
Unknown on line 0
Warning: oci8: Unable to register functions, unable to load in Unknown on
line 0
PHP has encountered an Access Violation at 023EAB79

I have the php_oci8.dll loaded in the php.ini file, so if I omit the dl()
line I just get
PHP has encountered an Access Violation at 023EAB79.

I placed php_oci8.dll directly in the Winnt dir, because otherwise it did
not seem to be found.
IIS definetly finds it now as I can not delete it anymore without stoping
IIS.

Thanks,

Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.