summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r--ext/standard/head.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c
index c84fee46df..b4df2645ff 100644
--- a/ext/standard/head.c
+++ b/ext/standard/head.c
@@ -59,7 +59,7 @@ PHP_FUNCTION(header)
PHPAPI int php_header()
{
- SLS_FETCH();
+ TSRMLS_FETCH();
if (sapi_send_headers()==FAILURE || SG(request_info).headers_only) {
return 0; /* don't allow output */
@@ -84,7 +84,6 @@ PHP_FUNCTION(setcookie)
pval **arg[6];
int arg_count;
zval **z_name=NULL, **z_value=NULL, **z_path=NULL, **z_domain=NULL;
- SLS_FETCH();
arg_count = ZEND_NUM_ARGS();
if (arg_count < 1 || arg_count > 6 || zend_get_parameters_array_ex(arg_count, arg) == FAILURE) {
@@ -181,8 +180,6 @@ PHP_FUNCTION(setcookie)
Return true if headers have already been sent, false otherwise */
PHP_FUNCTION(headers_sent)
{
- SLS_FETCH();
-
if (SG(headers_sent)) {
RETURN_TRUE;
} else {