]> granicus.if.org Git - php/commitdiff
proto-takeover from php3
authorHartmut Holzgraefe <hholzgra@php.net>
Wed, 17 May 2000 19:40:10 +0000 (19:40 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Wed, 17 May 2000 19:40:10 +0000 (19:40 +0000)
ext/standard/crypt.c
ext/standard/head.c
ext/standard/image.c

index 5e542049cd2914c8f94f8146ddb06e4f7f101fe9..fcf94d30adef1615a50dc78a5538e3a6f0743698 100644 (file)
@@ -116,6 +116,8 @@ static void php_to64(char *s, long v, int n)        {
        } 
 } 
 
+/* {{{ proto string crypt(string str [, string salt])
+   Encrypt a string */
 PHP_FUNCTION(crypt)
 {
        char salt[PHP_MAX_SALT_LEN+1];
@@ -175,7 +177,7 @@ PHP_FUNCTION(crypt)
        return_value->type = IS_STRING;
        pval_copy_constructor(return_value);
 }
-
+/* }}} */
 #endif
 
 
index cb475c5709be87eebd10e88e87aa3ff3485ab594..5d8c0fc4286f911e7ef7bdd872f395742f8fd503 100644 (file)
@@ -59,6 +59,8 @@ PHP_RINIT_FUNCTION(head)
 
 
 /* Implementation of the language Header() function */
+/* {{{ proto void header(string header)
+   Send a raw HTTP header */
 PHP_FUNCTION(Header)
 {
        pval **arg1;
@@ -69,7 +71,7 @@ PHP_FUNCTION(Header)
        convert_to_string_ex(arg1);
        sapi_add_header(Z_STRVAL_PP(arg1), Z_STRLEN_PP(arg1), 1);
 }
-
+/* }}} */
 
 PHPAPI int php_header()
 {
@@ -109,6 +111,8 @@ CookieList *php_pop_cookie_list(void)
 }
 
 /* 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 @@ PHP_FUNCTION(setcookie)
        }
 #endif
 }
-
+/* }}} */
 
 int php_headers_unsent(void)
 {
@@ -248,6 +252,8 @@ int php_headers_unsent(void)
        }
 }
 
+/* {{{ 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 @@ PHP_FUNCTION(headers_sent)
                RETURN_FALSE;
        }
 }
+/* }}} */
 
 /*
  * Local variables:
index 88de240736abb39e1b9c4b278929f05ae8b545fc..5a3c28eda56b6cfa2d37f52e62e384591059f31d 100644 (file)
@@ -294,6 +294,8 @@ static struct gfxinfo *php_handle_jpeg(FILE *fp,pval *info)
 }
 
 /* main function */
+/* {{{ proto array getimagesize(string imagefile[, array info])
+        Get the size of an image as 4-element array */
 PHP_FUNCTION(getimagesize)
 {
        pval **arg1,**info = 0;
@@ -386,3 +388,4 @@ PHP_FUNCTION(getimagesize)
                efree(result);
        }
 }
+/* }}} */