]> granicus.if.org Git - php/commitdiff
another bunch of proto fixes
authorHartmut Holzgraefe <hholzgra@php.net>
Tue, 23 May 2000 23:13:02 +0000 (23:13 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Tue, 23 May 2000 23:13:02 +0000 (23:13 +0000)
ext/db/db.c
ext/domxml/domxml.c
ext/session/session.c
ext/standard/basic_functions.c
ext/standard/exec.c
ext/standard/file.c
ext/standard/filestat.c
ext/standard/metaphone.c
ext/standard/output.c
main/configuration-parser.y
main/output.c

index ed64c9c14ae633ce0854c5f0d6a15f3a34f3289e..2d5f47e475dc3ea5bda26af9bf8780165fb641c1 100644 (file)
@@ -740,7 +740,7 @@ int php_dbm_delete(dbm_info *info, char *key) {
        return(ret);
 }
 
-/* {{{ string dbmfirstkey(int dbm_identifier)
+/* {{{ proto string dbmfirstkey(int dbm_identifier)
    Retrieves the first key from a dbm database */
 PHP_FUNCTION(dbmfirstkey)
 {
index 15cda6b9ec14ef9d8e8d8a2d51006bb7e11f0575..b93441d6782f1bb22abe4ad16330f6662f48902d 100644 (file)
@@ -380,7 +380,7 @@ PHP_FUNCTION(domxml_attrname)
 }
 /* }}} */
 
-/* {{{ proto class node(string name)
+/* {{{ proto class domxml_node(string name)
    Creates node */
 PHP_FUNCTION(domxml_node)
 {
index 8c72b53d55ed1bb3d773a92d6966d5678ee9952d..32c3db5c61ac178298bf8119857939be3deb3516 100644 (file)
@@ -1152,7 +1152,7 @@ PHP_FUNCTION(session_encode)
 }
 /* }}} */
 
-/* {{{ proto session_decode(string data)
+/* {{{ proto bool session_decode(string data)
    Deserializes data and reinitializes the variables */
 PHP_FUNCTION(session_decode)
 {
@@ -1168,7 +1168,7 @@ PHP_FUNCTION(session_decode)
 }
 /* }}} */
 
-/* {{{ proto session_start(void)
+/* {{{ proto bool session_start(void)
    Begin session - reinitializes freezed variables, registers browsers etc */
 PHP_FUNCTION(session_start)
 {
@@ -1180,7 +1180,7 @@ PHP_FUNCTION(session_start)
 }
 /* }}} */
 
-/* {{{ proto session_destroy(void)
+/* {{{ proto void session_destroy(void)
    Destroy the current session and all data associated with it */
 PHP_FUNCTION(session_destroy)
 {
@@ -1207,7 +1207,7 @@ void session_adapt_uris(const char *src, uint srclen, char **new, uint *newlen)
 }
 #endif
 
-/* {{{ proto session_unset(void)
+/* {{{ proto void session_unset(void)
    Unset all registered variables */
 PHP_FUNCTION(session_unset)
 {
index 8180d0e3c7d28d7e75e476be4611ad13bc4f7036..895ebddf7f887f8de76ad3c633f73fb4fb0c0617 100644 (file)
@@ -294,7 +294,7 @@ function_entry basic_functions[] = {
        PHP_FE(register_shutdown_function,      NULL)
 
        PHP_FE(highlight_file,                          NULL)   
-       PHP_NAMED_FE(show_source, PHP_FN(highlight_file), NULL)
+       PHP_FALIAS(show_source, highlight_file , NULL)
        PHP_FE(highlight_string,                        NULL)
        
        PHP_FE(ini_get,                                         NULL)
@@ -1967,7 +1967,7 @@ PHP_FUNCTION(extension_loaded)
 /* }}} */
 
 
-/* proto array get_extension_funcs(string extension_name)
+/* {{{ proto array get_extension_funcs(string extension_name)
    Returns an array with the names of functions belonging to the named extension */
 PHP_FUNCTION(get_extension_funcs)
 {
index 86fd53ab5b247d9d492fc7841cb5d0ee31337b48..2b581d813a11b3a9ce4cde86796ffc42e0a8525b 100644 (file)
@@ -324,7 +324,7 @@ char * php_escape_shell_cmd(char *str) {
        return cmd;
 }
 
-/* {{{ proto escapeshellcmd(string command)
+/* {{{ proto string escapeshellcmd(string command)
    Escape shell metacharacters */
 PHP_FUNCTION(escapeshellcmd)
 {
@@ -344,7 +344,8 @@ PHP_FUNCTION(escapeshellcmd)
 }
 /* }}} */
 
-
+/* {{{ proto string shell_exec(strng cmd)
+   What excatly is this variant for ??? */
 PHP_FUNCTION(shell_exec)
 {
        FILE *in;
@@ -387,7 +388,7 @@ PHP_FUNCTION(shell_exec)
        return_value->value.str.len = total_readbytes;
        return_value->type = IS_STRING;
 }
-
+/* }}} */
 
 /*
  * Local variables:
index d129f6b8926e1e24ac1c510cb11e47c921410c18..6ab56ed81d4c9d9011ece0316b5bfc766ffde524 100644 (file)
@@ -776,7 +776,7 @@ PHP_FUNCTION(feof)
 /* }}} */
 
 
-/* {{{ proto int socket_set_blocking(int socket descriptor, int mode)
+/* {{{ proto int set_socket_blocking(int socket descriptor, int mode)
    Set blocking/non-blocking mode on a socket */
 PHPAPI int php_set_sock_blocking(int socketd, int block)
 {
index 3ced291cf0671127a72d5aa7f80a377a4a2fddc8..9e3bad8b3ad44e5fd08ba2e66f5d144919aad7e5 100644 (file)
@@ -122,8 +122,10 @@ PHP_RSHUTDOWN_FUNCTION(filestat)
                efree (BG(CurrentStatFile));
        }
        return SUCCESS;
-}
+} 
 
+/* {{{ proto double diskfreespace(string path)
+   Get free diskspace for filesystem that path is on */
 PHP_FUNCTION(diskfreespace)
 {
        pval **path;
@@ -220,6 +222,7 @@ PHP_FUNCTION(diskfreespace)
 
        RETURN_DOUBLE(bytesfree);
 }
+/* }}} */
 
 /* {{{ proto bool chown(string filename, mixed user)
    Change file owner */
index 891feef574854f7c8c1334986fcdce0886433823..fe9eae97fc35c96f24a94be0e99d03805473d320 100644 (file)
@@ -26,7 +26,8 @@ static int metaphone(char *word, int max_phonemes, char **phoned_word, int tradi
 
 PHP_FUNCTION(metaphone);
 
-/* metaphone -- Breaks english phrases down into their phonemes. */
+/* {{{ proto string metaphone(string text, int phones)
+   Break english phrases down into their phonemes */
 PHP_FUNCTION(metaphone)
 {
        pval **pstr, **pphones;
@@ -51,6 +52,7 @@ PHP_FUNCTION(metaphone)
                RETURN_FALSE;
        }
 }
+/* }}} */
 
 /* 
    this is now the original code by Michael G Schwern:
index f778ca33bc5a3f467fdcde8e543b207e40596656..d489f42cc25eff3b8a5365795ca6e2be9c39c74d 100644 (file)
@@ -364,7 +364,7 @@ PHP_FUNCTION(ob_end_clean)
 /* }}} */
 
 
-/* proto string ob_get_contents(void)
+/* {{{ proto string ob_get_contents(void)
    Return the contents of the output buffer */
 PHP_FUNCTION(ob_get_contents)
 {
index 7ccbaeb4fa1ef75c2fc532ae79a2009fcf17b0ec..a201ce5eb468d175638db04c3072db4168adc67a 100644 (file)
@@ -260,6 +260,8 @@ PHP_MINIT_FUNCTION(browscap)
 }
 
 
+/* {{{ proto void parse_ini_file(string filename)
+   Parse configuration file */
 PHP_FUNCTION(parse_ini_file)
 {
 #ifdef ZTS
@@ -286,7 +288,7 @@ PHP_FUNCTION(parse_ini_file)
        fclose(cfgin);
 #endif
 }
-
+/* }}} */
 
 int php_shutdown_config(void)
 {
index f778ca33bc5a3f467fdcde8e543b207e40596656..d489f42cc25eff3b8a5365795ca6e2be9c39c74d 100644 (file)
@@ -364,7 +364,7 @@ PHP_FUNCTION(ob_end_clean)
 /* }}} */
 
 
-/* proto string ob_get_contents(void)
+/* {{{ proto string ob_get_contents(void)
    Return the contents of the output buffer */
 PHP_FUNCTION(ob_get_contents)
 {