Help building oci8 module on Solaris-10 x86 with PHP
| From: | Robert Sturrock | Date: | Mon, 11 Sep 2006 00:02:09 +0000 |
| Subject: | Help building oci8 module on Solaris-10 x86 with PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-42336@lists.php.net to get a copy of this message | ||
Hello.
I've been trying to build the PHP oci8 with PHP 4.4.2 on a Solaris 10
x86 based machine, and I'm having problems getting a working module.
What I have built segfaults and dumps core everytime I try to use
it. If anyone has been able to get the module working with this
configuration I'd be interested in hearing.
I have tried building using both Instantclient and against full Oracle
10.2.0 installation. (Instantclient is more problematic to build with,
because it seems the configure script is looking for libraries that
simply aren't there in the Solaris distribution of Instantclient.)
I was able to build the module by tweaking the Makefile to link against the
Oracle 32-bit libraries, but the resultant module dumps core:
$ cat oci-test.php
<?php
$conn = ocinlogon("scott", "tiger", "TESTDB");
$ora_sql = "select sysdate as X from dual";
$stmt = OCIParse($conn, $ora_sql);
OCIExecute($stmt);
echo $conn."----selecting\n\n";
while (ocifetch($stmt)) {
echo $conn . " [" . ociresult($stmt, "X") . "]\n\n";
}
echo $conn . "----done\n\n";
ocirollback($conn);
echo $conn . " rollback\n\n";
ocilogoff($conn);
echo $conn . " logoff\n\n";
?>
$ /usr/local/php-4.4.4/bin/php -f oci-test.php
Segmentation Fault (core dumped)
Any help appreciated.
Regards,
Robert.