CVS update: php31/ext/odbc

From: Date: Thu, 27 Aug 1998 20:55:43 +0000
Subject: CVS update: php31/ext/odbc
Groups: php.dev 
Request: Send a blank email to php-dev+get-610@lists.php.net to get a copy of this message
Date: Thursday August 27, 1998 @ 16:55 Author: shane Update of /repository/php31/ext/odbc In directory asf:/u2/tmp/cvs-serv1720/ext/odbc Modified Files: unified_odbc.c Log Message: Various fixes ldap now works with 3.1 moved dl close in request shutdown because it errored out if a loaded module used a list. moved module defines into msvc project files rather thwn config.w32.h Index: php31/ext/odbc/unified_odbc.c diff -c php31/ext/odbc/unified_odbc.c:2.4 php31/ext/odbc/unified_odbc.c:2.5 *** php31/ext/odbc/unified_odbc.c:2.4 Thu Aug 27 01:01:10 1998 --- php31/ext/odbc/unified_odbc.c Thu Aug 27 16:55:43 1998 *************** *** 1640,1646 **** --- 1640,1650 ---- return_value->value.lval = php3_plist_insert(db_conn, UODBC_GLOBAL(PHP3_UODBC_MODULE).le_pconn); new_index_ptr.ptr = (void *) return_value->value.lval; + #ifdef THREAD_SAFE + new_index_ptr.type = _php3_le_index_ptr(); + #else new_index_ptr.type = le_index_ptr; + #endif if (_php3_hash_update(plist,hashed_details,hashed_len + 1,(void *) &new_index_ptr, sizeof(list_entry),NULL)==FAILURE) { SQLDisconnect(db_conn->hdbc); *************** *** 1661,1667 **** --- 1665,1675 ---- int type; /* the link is already in the persistent list */ + #ifdef THREAD_SAFE + if (index_ptr->type != _php3_le_index_ptr()) { + #else if (index_ptr->type != le_index_ptr) { + #endif efree(hashed_details); RETURN_FALSE; } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#610) next »