diff options
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r-- | ext/standard/head.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c index bcb7f37963..6958fbfccd 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -50,20 +50,6 @@ PHP_FUNCTION(header) } /* }}} */ -/* {{{ proto void header_remove([string name]) - Removes an HTTP header previously set using header() */ -PHP_FUNCTION(header_remove) -{ - sapi_header_line ctr = {0}; - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &ctr.line, - &ctr.line_len) == FAILURE) - return; - - sapi_header_op(ZEND_NUM_ARGS() == 0 ? SAPI_HEADER_DELETE_ALL : SAPI_HEADER_DELETE, &ctr TSRMLS_CC); -} -/* }}} */ - PHPAPI int php_header(TSRMLS_D) { if (sapi_send_headers(TSRMLS_C)==FAILURE || SG(request_info).headers_only) { @@ -211,7 +197,7 @@ PHP_FUNCTION(setrawcookie) Returns true if headers have already been sent, false otherwise */ PHP_FUNCTION(headers_sent) { - zval *arg1 = NULL, *arg2 = NULL; + zval *arg1, *arg2; char *file=""; int line=0; |