cvs: /php3/functions interbase.c

From: Date: Tue, 12 Oct 1999 04:05:47 +0000
Subject: cvs: /php3/functions interbase.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-11696@lists.php.net to get a copy of this message
andrew Tue Oct 12 00:05:47 1999 EDT Modified files: /php3/functions interbase.c Log: Dynamic loading patch N 2. Index: php3/functions/interbase.c diff -u php3/functions/interbase.c:1.19 php3/functions/interbase.c:1.20 --- php3/functions/interbase.c:1.19 Sun Oct 10 10:49:10 1999 +++ php3/functions/interbase.c Tue Oct 12 00:05:46 1999 @@ -28,7 +28,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interbase.c,v 1.19 1999/10/10 14:49:10 andrew Exp $ */ +/* $Id: interbase.c,v 1.20 1999/10/12 04:05:46 andrew Exp $ */ /* TODO: Arrays, roles? A lot... */ @@ -534,7 +534,7 @@ php3_printf( "<table>" - "<tr><td>Revision:</td><td>$Revision: 1.19 $</td></tr>\n" + "<tr><td>Revision:</td><td>$Revision: 1.20 $</td></tr>\n" #ifdef COMPILE_DL "<tr><td>Dynamic module:</td><td>Yes</td></tr>\n" #endif @@ -740,8 +740,11 @@ if (_php3_hash_find(list,hashed_details,hashed_details_length+1,(void **) &index_ptr)==SUCCESS) { int type,xlink; void *ptr; - +#ifdef THREAD_SAFE if (index_ptr->type != _php3_le_index_ptr()) { +#else + if (index_ptr->type != le_index_ptr) { +#endif RETURN_FALSE; } xlink = (int) index_ptr->ptr; @@ -779,7 +782,11 @@ /* add it to the hash */ 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(list,hashed_details,hashed_details_length+1,(void *) &new_index_ptr, sizeof(list_entry), NULL)==FAILURE) { efree(hashed_details); RETURN_FALSE;

« previous php.dev (#11696) next »