#if APACHE || defined(USE_SAPI) || FHTTPD
char *tempstr;
#endif
-TLS_VARS;
+ PLS_FETCH();
- if (GLOBAL(header_is_being_sent)) {
+ if (PG(header_is_being_sent)) {
return 0;
} else {
- GLOBAL(header_is_being_sent) = 1;
+ PG(header_is_being_sent) = 1;
}
#if APACHE
if (!GLOBAL(php3_rqst)) { /* we're not in a request, allow output */
- GLOBAL(header_is_being_sent) = 0;
+ PG(header_is_being_sent) = 0;
return 1;
}
if ((GLOBAL(php3_PrintHeader) && !GLOBAL(php3_HeaderPrinted)) || (GLOBAL(php3_PrintHeader) && GLOBAL(php3_HeaderPrinted) == 2)) {
send_http_header(GLOBAL(php3_rqst));
if (GLOBAL(php3_rqst)->header_only) {
set_header_request(1);
- GLOBAL(header_is_being_sent) = 0;
+ PG(header_is_being_sent) = 0;
return(0);
}
}
GLOBAL(header_called) = 1;
}
#endif
- GLOBAL(header_is_being_sent) = 0;
+ PG(header_is_being_sent) = 0;
return(1);
}
*/
int initialized; /* keep track of which resources were successfully initialized */
static int module_initialized = 0;
-unsigned char header_is_being_sent;
#if WIN32|WINNT
unsigned int wintimer;
/* initialize global variables */
{
- GLOBAL(header_is_being_sent) = 0;
+ PG(header_is_being_sent)=0;
}
if (php3_init_request_info(NULL)) {
long track_vars;
long y2k_compliance;
+
+ unsigned char header_is_being_sent;
};
-#endif /* _PHP_GLOBALS_H */
\ No newline at end of file
+#endif /* _PHP_GLOBALS_H */