From: Marcus Boerger Date: Wed, 12 May 2004 22:17:01 +0000 (+0000) Subject: ifdef out the ts_free_id until php 5.1 and until it is complete X-Git-Tag: RELEASE_0_1~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0be906309406816c9432e434bbdb0093ce0a135;p=php ifdef out the ts_free_id until php 5.1 and until it is complete --- diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index e075ce8551..1ae5345c1f 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -159,9 +159,11 @@ TSRM_API void tsrm_shutdown(void) next_p = p->next; for (j=0; jcount; j++) { if (p->storage[j]) { +#if MBO_0 if (resource_types_table && resource_types_table[j].dtor) { resource_types_table[j].dtor(p->storage[j], &p->storage); } +#endif free(p->storage[j]); } } @@ -422,6 +424,7 @@ void ts_free_thread(void) /* deallocates all occurrences of a given id */ void ts_free_id(ts_rsrc_id id) { +#if MBO_0 int i; int j = TSRM_UNSHUFFLE_RSRC_ID(id); @@ -449,6 +452,7 @@ void ts_free_id(ts_rsrc_id id) tsrm_mutex_unlock(tsmm_mutex); TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully freed resource id %d", id)); +#endif }