]> granicus.if.org Git - php/commitdiff
ifdef out the ts_free_id until php 5.1 and until it is complete
authorMarcus Boerger <helly@php.net>
Wed, 12 May 2004 22:17:01 +0000 (22:17 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 12 May 2004 22:17:01 +0000 (22:17 +0000)
TSRM/TSRM.c

index e075ce85516bf94b0158d71ae47b2324821793ec..1ae5345c1f69a51a1ca52c50a8fd6537bf3291c8 100644 (file)
@@ -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
 }