]> granicus.if.org Git - php/commitdiff
Windows ist ser schlecht
authorSterling Hughes <sterling@php.net>
Sun, 3 Dec 2000 15:30:14 +0000 (15:30 +0000)
committerSterling Hughes <sterling@php.net>
Sun, 3 Dec 2000 15:30:14 +0000 (15:30 +0000)
ext/sablot/sablot.c

index d8ae642b01df9790507bd4d8b25e30eccb30405d..52ff594e91eff9a00d6ac89da72ce0ff8336c409 100644 (file)
@@ -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);
 }
 /* }}} */