/* 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;
}
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};
FUNCH_FREE(handle->endDocHandler);
SABLOT_FREE_ERROR_HANDLE(*handle);
+ efree(handle);
}
/* }}} */