summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2000-12-03 15:30:14 +0000
committerSterling Hughes <sterling@php.net>2000-12-03 15:30:14 +0000
commit56094458b70c45e876affdae17a81d01108633a8 (patch)
tree53f7dbb4677fa7e5584995d4d6ea94907af68861
parent5b47d1ef7a6d6c12dd1f692cd1cfa14f3089444f (diff)
downloadphp-git-56094458b70c45e876affdae17a81d01108633a8.tar.gz
Windows ist ser schlecht
-rw-r--r--ext/sablot/sablot.c6
1 files 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);
}
/* }}} */