From:             soula at lifl dot fr
Operating system: tru64
PHP version:      4.3.2RC1
PHP Bug Type:     OCI8 related
Bug description:  pb of exit handler in OCI8 module

I use php4-STABLE-200303241630 version, Oracle-8.1.7 and Tru64/5.1 .

Note: For technical reason, we have clear the OCI_SHARED in the OCI8
initialize call (cf. #22927)

The Oracle client (libclntsh.so) set a exit handler via "atexit()" when we
connect DB. But PHP unload the module and le library before exiting and so
the handler doesn't exist any more and cause a SIGSEGV.

The solution we found is either commenting the "dlclose()" in zend_API.c
or compiling OCI8 module in static.


Here the compilation config :

Configure Command =>  './configure'
'--prefix=/usr/local/php-200303241630-ap1' '--enable-memory-limit'
'--enable-shared' '--enable-sockets' '--enable-trans-sid'
'--enable-debug' '--with-config-file-path=/usr/local/lib'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-debugger=yes'
'--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-mod_charset'
'--with-openssl' '--with-bz2' '--with-zlib-dir' '--with-gettext'
'--with-kerberos' '--with-regex=system' '--with-zlib' '--with-gd=shared'
'--with-jpeg-dir=/usr/local/jpeg/lib' '--with-png-dir=/usr/local/lib'
'--with-xpm-dir=/usr/local/lib'
'--with-oci8=shared,/usr/oracle/product/8.1.6' '--with-ldap=shared'
'--with-mysql=shared,/usr/local/mysql'
'--with-pgsql=shared,/usr/local/pgsql'


Sincerly,
-- Julien

-- 
Edit bug report at http://bugs.php.net/?id=22929&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22929&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22929&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22929&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22929&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22929&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22929&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22929&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22929&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22929&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22929&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22929&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22929&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22929&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22929&r=gnused

Reply via email to