Date: 08/27/98
- Next message: shane: "[PHP-DEV] CVS update: php31/ext/ldap"
- Previous message: shane: "[PHP-DEV] CVS update: php31/os/nt"
- Next in thread: shane: "[PHP-DEV] CVS update: php31/ext/odbc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> For help: php-dev-help <email protected>
- Next message: shane: "[PHP-DEV] CVS update: php31/ext/ldap"
- Previous message: shane: "[PHP-DEV] CVS update: php31/os/nt"
- Next in thread: shane: "[PHP-DEV] CVS update: php31/ext/odbc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

