Help building oci8 module on Solaris-10 x86 with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux