summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-05-12 22:17:01 +0000
committerMarcus Boerger <helly@php.net>2004-05-12 22:17:01 +0000
commitc0be906309406816c9432e434bbdb0093ce0a135 (patch)
tree595c0dc1fec11d7e6cf8ba90206b345a27101b23 /TSRM
parentd6ba95c61867b1b11dff0aab205136d70732785d (diff)
downloadphp-git-c0be906309406816c9432e434bbdb0093ce0a135.tar.gz
ifdef out the ts_free_id until php 5.1 and until it is complete
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/TSRM.c4
1 files changed, 4 insertions, 0 deletions
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; j<p->count; 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
}