PHP_FE(ini_restore, NULL)
PHP_FE(print_r, NULL)
+ {"setcookie", php3_SetCookie, NULL},
+ {"header", php3_Header, NULL},
{NULL, NULL, NULL}
};
}
convert_to_string(arg1);
php4i_add_header_information(arg1->value.str.val, arg1->value.str.len);
+ arg1->type = IS_LONG; /* change arg1's type so that it doesn't get freed */
+ arg1->value.lval = 0;
}
function_entry php3_header_functions[] = {
- {"setcookie", php3_SetCookie, NULL},
- {"header", php3_Header, NULL},
{NULL, NULL, NULL}
};
SAPI_API void sapi_deactivate(SLS_D)
{
zend_llist_destroy(&SG(sapi_headers).headers);
+ if (SG(sapi_headers).content_type.header) {
+ efree(SG(sapi_headers).content_type.header);
+ }
}
php_ini_rshutdown();
+
shutdown_scanner(CLS_C);
shutdown_compiler(CLS_C);
shutdown_executor(ELS_C);
+ sapi_deactivate(SLS_C);
+
php3_destroy_request_info(NULL);
shutdown_memory_manager(PG(unclean_shutdown), 0);
php3_unset_timeout();
- sapi_deactivate(SLS_C);
#if CGI_BINARY
fflush(stdout);