cvs: php4 /ext/standard/ head.c

From: Date: Wed, 17 May 2000 19:37:27 +0000
Subject: cvs: php4 /ext/standard/ head.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15153@lists.php.net to get a copy of this message
hholzgra Wed May 17 21:37:27 2000 EDT Modified files: /php4/ext/standard head.c Log: proto-takeover from php3 Index: php4/ext/standard/head.c diff -u php4/ext/standard/head.c:1.31 php4/ext/standard/head.c:1.32 --- php4/ext/standard/head.c:1.31 Fri Apr 28 15:03:13 2000 +++ php4/ext/standard/head.c Wed May 17 21:37:26 2000 @@ -15,7 +15,7 @@ | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: head.c,v 1.31 2000/04/28 13:03:13 zeev Exp $ */ +/* $Id: head.c,v 1.32 2000/05/17 19:37:26 hholzgra Exp $ */ #include <stdio.h> #include "php.h" @@ -59,6 +59,8 @@ /* Implementation of the language Header() function */ +/* {{{ proto void header(string header) + Send a raw HTTP header */ PHP_FUNCTION(Header) { pval **arg1; @@ -69,8 +71,8 @@ convert_to_string_ex(arg1); sapi_add_header(Z_STRVAL_PP(arg1), Z_STRLEN_PP(arg1), 1); } +/* }}} */ - PHPAPI int php_header() { SLS_FETCH(); @@ -109,6 +111,8 @@ } /* php_set_cookie(name,value,expires,path,domain,secure) */ +/* {{{ proto void setcookie(string name [, string value [, int expires [, string path [, string domain [, string secure]]]]]) + Send a cookie */ PHP_FUNCTION(setcookie) { char *cookie, *encoded_value = NULL; @@ -237,7 +241,7 @@ } #endif } - +/* }}} */ int php_headers_unsent(void) { @@ -248,6 +252,8 @@ } } +/* {{{ proto int headers_sent(void) + Return true if headers have already been sent, false otherwise */ PHP_FUNCTION(headers_sent) { SLS_FETCH(); @@ -258,6 +264,7 @@ RETURN_FALSE; } } +/* }}} */ /* * Local variables:

« previous php.version4 (#15153) next »