int i;
char buf[NS_BUF_SIZE + 1];
char *tmp;
- TSRMLS_FETCH();
for(i = 0; i < Ns_SetSize(NSG(conn->headers)); i++) {
char *key = Ns_SetKey(NSG(conn->headers), i);
php_ns_module_main(TSRMLS_D)
{
zend_file_handle file_handle;
- TSRMLS_FETCH();
- TSRMLS_FETCH();
file_handle.type = ZEND_HANDLE_FILENAME;
file_handle.filename = SG(request_info).path_translated;
{
char *content_type;
const char *auth;
- TSRMLS_FETCH();
PG(during_request_startup) = 0;
SG(sapi_headers).http_response_code = 200;
if (ctx->state == 1 && APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(ctx->bb))) {
zend_file_handle zfd;
apr_bucket *eos;
- TSRMLS_FETCH();
/* We want to execute only one script per request.
* A bug in Apache or other filters could cause us
INLINE static int
php_caudium_low_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
{
- TSRMLS_FETCH();
struct pike_string *ind;
struct svalue *s_headermap;
GET_THIS();
size_t read_bytes = 0, tmp;
int c;
char *pos = buffer;
- TSRMLS_FETCH();
while( count_bytes ) {
c = FCGX_GetStr( pos, count_bytes, in );
php_roxen_low_ub_write(const char *str, uint str_length) {
int sent_bytes = 0;
struct pike_string *to_write = NULL;
-#ifdef ZTS
- TSRMLS_FETCH();
-#endif
#ifdef ROXEN_USE_ZTS
GET_THIS();
#endif
+ TSRMLS_FETCH();
+
if(!MY_FD_OBJ->prog) {
PG(connection_status) = PHP_CONNECTION_ABORTED;
zend_bailout();
static int
php_roxen_sapi_ub_write(const char *str, uint str_length)
{
-#ifdef ZTS
- TSRMLS_FETCH();
-#endif
#ifdef ROXEN_USE_ZTS
GET_THIS();
#endif
+ TSRMLS_FETCH();
+
int sent_bytes = 0, fd = MY_FD;
if(fd)
{
static int
php_roxen_low_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
{
-#ifdef ZTS
- TSRMLS_FETCH();
-#endif
struct pike_string *ind;
struct svalue *s_headermap;
#ifdef ROXEN_USE_ZTS
GET_THIS();
#endif
+
if(!MY_FD_OBJ->prog) {
PG(connection_status) = PHP_CONNECTION_ABORTED;
zend_bailout();
#ifdef ROXEN_USE_ZTS
GET_THIS();
#endif
-#ifdef ZTS
TSRMLS_FETCH();
-#endif
if(!MY_FD_OBJ->prog)
{
int res, len;
char *dir;
zend_file_handle file_handle;
-#ifdef ZTS
- TSRMLS_FETCH();
#ifdef ROXEN_USE_ZTS
GET_THIS();
-#endif
#endif
file_handle.type = ZEND_HANDLE_FILENAME;
struct svalue *done_callback, *raw_fd;
struct pike_string *script, *ind;
int status = 1;
- TSRMLS_FETCH();
#ifdef ROXEN_USE_ZTS
GET_THIS();
#endif
+ TSRMLS_FETCH();
if(current_thread == th_self())
error("PHP4.Interpreter->run: Tried to run a PHP-script from a PHP "
{
char buf[BUF_SIZE + 1];
char *p;
- TSRMLS_FETCH();
sprintf(buf, "Server: %s", TUXAPI_version);
static void tux_module_main(TSRMLS_D)
{
zend_file_handle file_handle;
- TSRMLS_FETCH()FETCH();
- TSRMLS_FETCH()FETCH();
file_handle.type = ZEND_HANDLE_FILENAME;
file_handle.filename = SG(request_info).path_translated;