diff options
| author | Sebastian Bergmann <sebastian@php.net> | 2003-03-25 08:07:13 +0000 |
|---|---|---|
| committer | Sebastian Bergmann <sebastian@php.net> | 2003-03-25 08:07:13 +0000 |
| commit | 5ca078779a7cde0f3a4a9b0cc8b77abd5177a1d7 (patch) | |
| tree | 4aed82d43faf1aa9cf1f7080dcc1e0197542e9d3 /ext/standard/head.c | |
| parent | b671380b6b5b6e1f4f235e810afa4199e989d2ba (diff) | |
| download | php-git-5ca078779a7cde0f3a4a9b0cc8b77abd5177a1d7.tar.gz | |
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
Diffstat (limited to 'ext/standard/head.c')
| -rw-r--r-- | ext/standard/head.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c index c993664269..4d38016129 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -55,10 +55,8 @@ PHP_FUNCTION(header) } /* }}} */ -PHPAPI int php_header() +PHPAPI int php_header(TSRMLS_D) { - TSRMLS_FETCH(); - if (sapi_send_headers(TSRMLS_C)==FAILURE || SG(request_info).headers_only) { return 0; /* don't allow output */ } else { @@ -98,14 +96,14 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t * pick an expiry date 1 year and 1 second in the past */ t = time(NULL) - 31536001; - dt = php_std_date(t); + dt = php_std_date(t TSRMLS_CC); sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s", name, dt); efree(dt); } else { sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); if (expires > 0) { strcat(cookie, "; expires="); - dt = php_std_date(expires); + dt = php_std_date(expires TSRMLS_CC); strcat(cookie, dt); efree(dt); } |
