ID: 34731 Updated by: [EMAIL PROTECTED] Reported By: novicky at aarongroup dot cz -Status: Open +Status: Assigned Bug Type: OCI8 related Operating System: All PHP Version: 5CVS-2005-10-04 (CVS) -Assigned To: +Assigned To: tony2001 New Comment:
Assigned to the maintainer. Previous Comments: ------------------------------------------------------------------------ [2005-10-04 15:59:20] novicky at aarongroup dot cz Description: ------------ There is an incorrect session destructor registration. The pointer registered by zend_list_insert points to a memory block which is then released by efree. This can lead to segmentation fault when destructor is called. A proposed patch follows (the same problem is id development branch) --- php5-STABLE-200510041238/ext/oci8/oci8.c.ORIG 2005-10-04 15:39:42.301952856 +0200 +++ php5-STABLE-200510041238/ext/oci8/oci8.c 2005-10-04 15:40:58.979935427 +0200 @@ -2879,7 +2879,6 @@ ) ); - session->num = zend_list_insert(session, le_session); session->is_open = 1; mutex_lock(mx_lock); @@ -2892,6 +2891,7 @@ } mutex_unlock(mx_lock); + session->num = zend_list_insert(session, le_session); oci_debug("_oci_open_session new sess=%d user=%s",session->num,username); return session; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34731&edit=1