Edit report at https://bugs.php.net/bug.php?id=60901&edit=1
ID: 60901 Comment by: lzsiga at freemail dot c3 dot hu Reported by: lzsiga at freemail dot c3 dot hu Summary: Oracle-11.2 is not detected (too new) Status: Feedback Type: Bug Package: OCI8 related Operating System: AIX 6.1 PHP Version: 5.3.9 Block user comment: N Private report: N New Comment: It might work, but I wouldn't want to hack around in the Oracle's directory... could you please add an option to ./configure prevent the version-autodetecting? Something like: OCI8_VERSION=11.2 ./configure --with-oci8 or export OCI8_VERSION="$(grep OCI_MAJOR_VERSION $ORACLE_HOME/rdbms/public/oci.h | cut -d' ' -f 4).$(grep OCI_MINOR_VERSION $ORACLE_HOME/rdbms/public/oci.h | cut -d' ' -f 4)" ./configure --with-oci8 Previous Comments: ------------------------------------------------------------------------ [2012-01-27 20:47:04] s...@php.net Instead of patching the configuration script can you try creating a symbolic link from libclntsh.so and/or libclntsh.so.11.1 pointing to libclntsh.so.11.2? For ORACLE_HOME installs on Linux (and likely on Solaris) a symbolic link from libclntsh.so to libclntsh.so.11.1 is automatically created during Oracle installation. Linux & Solaris 11.2 Instant Client zip installs provide libclntsh.so.11.1 (for drop-in library replacement similar to how Oracle 10.2 libs were called *.10.1). Generic installation instructions for Instant Client are to manually create a symbolic link from libclntsh.so to libclntsh.so.11.1 ------------------------------------------------------------------------ [2012-01-27 13:21:12] lzsiga at freemail dot c3 dot hu Quick fix: sed_repl 's: if test -s "$OCI8_DIR/orainst/unix.rgs"; then:'\ ' if test -s "$OCI8_LCS_BASE.11.2"; then\n OCI8_ORACLE_VERSION=11.2;\n'\ ' elif test -s "$OCI8_DIR/orainst/unix.rgs"; then:' configure ------------------------------------------------------------------------ [2012-01-27 12:31:13] lzsiga at freemail dot c3 dot hu Description: ------------ $ ls $ORACLE_HOME/lib32/libclntsh.so.*.1 configure tries this and fails, beacuse the Oracle version is 11.2 $ ls $ORACLE_HOME/lib32/libclntsh.so.*.2 ..../lib32/libclntsh.so.11.2 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60901&edit=1