From: Sterling Hughes Date: Sun, 3 Dec 2000 15:30:14 +0000 (+0000) Subject: Windows ist ser schlecht X-Git-Tag: php-4.0.5RC1~1037 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56094458b70c45e876affdae17a81d01108633a8;p=php Windows ist ser schlecht --- 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); } /* }}} */