PHP_FE(print_r, NULL)
{"setcookie", php3_SetCookie, NULL},
{"header", php3_Header, NULL},
+ PHP_FE(headers_sent, NULL)
PHP_FE(function_exists, NULL)
PHP_FE(in_array, NULL)
PHP_FE(extract, NULL)
#include "main.h"
#include "head.h"
#include "post.h"
+#include "SAPI.h"
#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
#else
}
}
+PHP_FUNCTION(headers_sent)
+{
+ SLS_FETCH();
+
+ if (SG(headers_sent)) {
+ RETURN_TRUE;
+ } else {
+ RETURN_FALSE;
+ }
+}
function_entry php3_header_functions[] = {
{NULL, NULL, NULL}
extern int php3_init_head(INIT_FUNC_ARGS);
PHP_FUNCTION(Header);
PHP_FUNCTION(SetCookie);
+PHP_FUNCTION(headers_sent);
void php4i_add_header_information(char *header_information, uint header_length);