ID: 31617
Updated by: [EMAIL PROTECTED]
Reported By: guym at arizona dot edu
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Solaris 9
PHP Version: 4.3.10
New Comment:
I meant the PHP CLI (the php binary).
Previous Comments:
------------------------------------------------------------------------
[2005-01-21 00:08:21] guym at arizona dot edu
Here is the result of ldd libphp4.so
libpq.so.3 => /opt/httpd/postgres/lib/libpq.so.3
libresolv.so.2 => /usr/lib/libresolv.so.2
libm.so.1 => /usr/lib/libm.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libclntsh.so.9.0 =>
/home/oracle/product/9.2.0/lib32/libclntsh.so.9.0
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /opt/gnu/lib/libgcc_s.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libwtc9.so => /home/oracle/product/9.2.0/lib32/libwtc9.so
libsched.so.1 => /usr/lib/libsched.so.1
libaio.so.1 => /usr/lib/libaio.so.1
librt.so.1 => /usr/lib/librt.so.1
libmd5.so.1 => /usr/lib/libmd5.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1
And here is ldd on libclntsh.so.9.0
libwtc9.so => /home/oracle/product/9.2.0/lib32/libwtc9.so
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libaio.so.1 => /usr/lib/libaio.so.1
librt.so.1 => /usr/lib/librt.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libmd5.so.1 => /usr/lib/libmd5.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1
My LD_LIBRARY_PATH (also set in Apache's envvars).
/opt/httpd/apache/lib:/opt/gnu/lib:/home/oracle/product/9.2.0/lib32:/opt/httpd/postgresql/lib
------------------------------------------------------------------------
[2005-01-20 22:39:09] [EMAIL PROTECTED]
Can you do "ldd" on the libphp4.so generated and see what libs is it
using?
------------------------------------------------------------------------
[2005-01-20 18:37:44] guym at arizona dot edu
Yes, everything Oracle related works fine by itself on the system.
I think the problem is that it is using the OpenLDAP library instead of
Oracle's, despite being compiled against Oracle LDAP. The
LD_LIBRARY_PATH is set in Apache's envvars (and in the shell when
starting apache).
------------------------------------------------------------------------
[2005-01-19 23:03:31] [EMAIL PROTECTED]
Does cli work?
------------------------------------------------------------------------
[2005-01-19 22:26:58] guym at arizona dot edu
Description:
------------
Compiling oci8 into the php LoadableModule causes each apache child to
segfault immediately. Here is the gdb output:
#0 0xfd7007b8 in gslufpFLog () from
/home/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#1 0xfd6efb30 in ldap_init () from
/home/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#2 0xfe9a20ac in openConnection () from /usr/lib/libsldap.so.1
It seems it is not using Oracle's LDAP, even though that was specified
during configuration. Here is my configure command:
./configure --prefix=/opt/httpd/php
--with-apxs2=/opt/httpd/apache/bin/apxs
--with-config-file-path=/opt/httpd/apache/conf --enable-safe-mode
--with-dom-xslt --with-ldap=$ORACLE_HOME --with-oci8
--with-pgsql=/opt/httpd/postgres --with-dom --with-zlib-dir
--with-openssl-dir
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31617&edit=1