From 56094458b70c45e876affdae17a81d01108633a8 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sun, 3 Dec 2000 15:30:14 +0000 Subject: [PATCH] Windows ist ser schlecht --- ext/sablot/sablot.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ext/sablot/sablot.c b/ext/sablot/sablot.c index d8ae642b01..52ff594e91 100644 --- a/ext/sablot/sablot.c +++ b/ext/sablot/sablot.c @@ -175,11 +175,8 @@ ZEND_GET_MODULE(sablot) /* MINIT and MINFO Functions */ PHP_MINIT_FUNCTION(sablot) { - SABLOTLS_FETCH(); le_sablot = zend_register_list_destructors_ex(_php_sablot_free_processor, NULL, "Sablotron XSLT", module_number); - SABLOTG(processor) = NULL; - return SUCCESS; } @@ -255,7 +252,7 @@ PHP_FUNCTION(xslt_output_endtransform) buffer = estrndup(OG(active_ob_buffer).buffer, OG(active_ob_buffer).text_length); /* Nake sure there is data to send */ - if (strlen(buffer)) { + if (OG(active_ob_buffer).text_length) { char *args[] = {"/_xmlinput", buffer, "/_output", NULL}; @@ -1347,6 +1344,7 @@ static void _php_sablot_free_processor(zend_rsrc_list_entry *rsrc) FUNCH_FREE(handle->endDocHandler); SABLOT_FREE_ERROR_HANDLE(*handle); + efree(handle); } /* }}} */ -- 2.50.1