]> granicus.if.org Git - php/commitdiff
proto fixes
authorAndrey Hristov <andrey@php.net>
Sat, 19 Jul 2003 19:23:34 +0000 (19:23 +0000)
committerAndrey Hristov <andrey@php.net>
Sat, 19 Jul 2003 19:23:34 +0000 (19:23 +0000)
ext/pfpro/pfpro.c
ext/pgsql/pgsql.c
ext/posix/posix.c
ext/pspell/pspell.c
ext/readline/readline.c
ext/sysvmsg/sysvmsg.c
ext/sysvsem/sysvsem.c
ext/sysvshm/sysvshm.c
ext/yaz/php_yaz.c
ext/yp/yp.c
ext/zlib/zlib.c

index 57e0dd1b0ed52347bba8b65cb4905908386d6a7f..d8411f82bed1ed06bb1d5686b6fbfa1767aa7936 100644 (file)
@@ -151,7 +151,7 @@ PHP_FUNCTION(pfpro_version)
 }
 /* }}} */
 
-/* {{{ proto void pfpro_init()
+/* {{{ proto bool pfpro_init()
    Initializes the Payflow Pro library */
 PHP_FUNCTION(pfpro_init)
 {
@@ -167,7 +167,7 @@ PHP_FUNCTION(pfpro_init)
 }
 /* }}} */
 
-/* {{{ proto void pfpro_cleanup()
+/* {{{ proto bool pfpro_cleanup()
    Shuts down the Payflow Pro library */
 PHP_FUNCTION(pfpro_cleanup)
 {
index 7374963c85a9356883f8a3d09afc8aaabc8e8bf4..f1e3aeafacc8edbd638a0ff1329167eaf3fff6d0 100644 (file)
@@ -1443,7 +1443,7 @@ PHP_FUNCTION(pg_fetch_all)
 }
 /* }}} */
 
-/* {{{ proto mixed pg_result_seek(resource result, int offset)
+/* {{{ proto bool pg_result_seek(resource result, int offset)
    Set internal row offset */
 PHP_FUNCTION(pg_result_seek)
 {
@@ -3027,7 +3027,7 @@ PHP_FUNCTION(pg_get_result)
 }
 /* }}} */
 
-/* {{{ proto int pg_result_status(resource result[, long result_type])
+/* {{{ proto mixed pg_result_status(resource result[, long result_type])
    Get status of query result */
 PHP_FUNCTION(pg_result_status)
 {
@@ -3060,7 +3060,7 @@ PHP_FUNCTION(pg_result_status)
 /* }}} */
 
 
-/* {{{ proto resource pg_get_notify([resource connection[, result_type]])
+/* {{{ proto array pg_get_notify([resource connection[, result_type]])
    Get asynchronous notification */
 PHP_FUNCTION(pg_get_notify)
 {
@@ -3094,7 +3094,7 @@ PHP_FUNCTION(pg_get_notify)
 }
 /* }}} */
 
-/* {{{ proto resource pg_get_pid([resource connection)
+/* {{{ proto int pg_get_pid([resource connection)
    Get backend(server) pid */
 PHP_FUNCTION(pg_get_pid)
 {
index c0d289cb68bb1f05afc38192454cbf4a0ec48691..30361982357dd15c4d78bb9a9def1267b22fdecd 100644 (file)
@@ -960,7 +960,7 @@ struct limitlist {
 /* }}} */
 
 
-/* {{{ proto int posix_getrlimit(void)
+/* {{{ proto array posix_getrlimit(void)
    Get system resource consumption limits (This is not a POSIX function, but a BSDism and a SVR4ism. We compile conditionally) */
 PHP_FUNCTION(posix_getrlimit)
 {
index 2f5993030c22ead865d963ecd264171e880078e8..ec7b8d9bd65318d88f8ae5112b2040f61e05d3cb 100644 (file)
@@ -316,7 +316,7 @@ PHP_FUNCTION(pspell_new_config)
 }
 /* }}} */
 
-/* {{{ proto int pspell_check(int pspell, string word)
+/* {{{ proto bool pspell_check(int pspell, string word)
    Returns true if word is valid */
 PHP_FUNCTION(pspell_check)
 {
@@ -386,7 +386,7 @@ PHP_FUNCTION(pspell_suggest)
 }
 /* }}} */
 
-/* {{{ proto int pspell_store_replacement(int pspell, string misspell, string correct)
+/* {{{ proto bool pspell_store_replacement(int pspell, string misspell, string correct)
    Notify the dictionary of a user-selected replacement */
 PHP_FUNCTION(pspell_store_replacement)
 {
@@ -419,7 +419,7 @@ PHP_FUNCTION(pspell_store_replacement)
 }
 /* }}} */
 
-/* {{{ proto int pspell_add_to_personal(int pspell, string word)
+/* {{{ proto bool pspell_add_to_personal(int pspell, string word)
    Adds a word to a personal list */
 PHP_FUNCTION(pspell_add_to_personal)
 {
@@ -456,7 +456,7 @@ PHP_FUNCTION(pspell_add_to_personal)
 }
 /* }}} */
 
-/* {{{ proto int pspell_add_to_session(int pspell, string word)
+/* {{{ proto bool pspell_add_to_session(int pspell, string word)
    Adds a word to the current session */
 PHP_FUNCTION(pspell_add_to_session)
 {
@@ -493,7 +493,7 @@ PHP_FUNCTION(pspell_add_to_session)
 }
 /* }}} */
 
-/* {{{ proto int pspell_clear_session(int pspell)
+/* {{{ proto bool pspell_clear_session(int pspell)
    Clears the current session */
 PHP_FUNCTION(pspell_clear_session)
 {
@@ -524,7 +524,7 @@ PHP_FUNCTION(pspell_clear_session)
 }
 /* }}} */
 
-/* {{{ proto int pspell_save_wordlist(int pspell)
+/* {{{ proto bool pspell_save_wordlist(int pspell)
    Saves the current (personal) wordlist */
 PHP_FUNCTION(pspell_save_wordlist)
 {
@@ -606,7 +606,7 @@ PHP_FUNCTION(pspell_config_create)
 }
 /* }}} */
 
-/* {{{ proto int pspell_config_runtogether(int conf, bool runtogether)
+/* {{{ proto bool pspell_config_runtogether(int conf, bool runtogether)
    Consider run-together words as valid components */
 PHP_FUNCTION(pspell_config_runtogether)
 {
@@ -635,7 +635,7 @@ PHP_FUNCTION(pspell_config_runtogether)
 }
 /* }}} */
 
-/* {{{ proto int pspell_config_mode(int conf, long mode)
+/* {{{ proto bool pspell_config_mode(int conf, long mode)
    Select mode for config (PSPELL_FAST, PSPELL_NORMAL or PSPELL_BAD_SPELLERS) */
 PHP_FUNCTION(pspell_config_mode)
 {
@@ -672,7 +672,7 @@ PHP_FUNCTION(pspell_config_mode)
 }
 /* }}} */
 
-/* {{{ proto int pspell_config_ignore(int conf, int ignore)
+/* {{{ proto bool pspell_config_ignore(int conf, int ignore)
    Ignore words <= n chars */
 PHP_FUNCTION(pspell_config_ignore)
 {
@@ -723,7 +723,7 @@ PHP_FUNCTION(pspell_config_ignore)
 }
 /* }}} */
 
-/* {{{ proto int pspell_config_personal(int conf, string personal)
+/* {{{ proto bool pspell_config_personal(int conf, string personal)
    Use a personal dictionary for this config */
 PHP_FUNCTION(pspell_config_personal)
 {
@@ -761,7 +761,7 @@ PHP_FUNCTION(pspell_config_personal)
 }
 /* }}} */
 
-/* {{{ proto int pspell_config_repl(int conf, string repl)
+/* {{{ proto bool pspell_config_repl(int conf, string repl)
    Use a personal dictionary with replacement pairs for this config */
 PHP_FUNCTION(pspell_config_repl)
 {
@@ -801,7 +801,7 @@ PHP_FUNCTION(pspell_config_repl)
 }
 /* }}} */
 
-/* {{{ proto int pspell_config_save_repl(int conf, bool save)
+/* {{{ proto bool pspell_config_save_repl(int conf, bool save)
    Save replacement pairs when personal list is saved for this config */
 PHP_FUNCTION(pspell_config_save_repl)
 {
index 2fecea5644470886ec19344309536749ea40e6ac..d15e9614d5c05a480b539aacb5156b596c3aa284 100644 (file)
@@ -222,7 +222,7 @@ PHP_FUNCTION(readline_info)
 }
 
 /* }}} */
-/* {{{ proto void readline_add_history([string prompt]) 
+/* {{{ proto bool readline_add_history([string prompt]) 
    Adds a line to the history */
 PHP_FUNCTION(readline_add_history)
 {
@@ -240,7 +240,7 @@ PHP_FUNCTION(readline_add_history)
 }
 
 /* }}} */
-/* {{{ proto void readline_clear_history(void) 
+/* {{{ proto bool readline_clear_history(void) 
    Clears the history */
 PHP_FUNCTION(readline_clear_history)
 {
@@ -281,7 +281,7 @@ PHP_FUNCTION(readline_list_history)
 }
 #endif
 /* }}} */
-/* {{{ proto int readline_read_history([string filename] [, int from] [,int to]) 
+/* {{{ proto bool readline_read_history([string filename] [, int from] [,int to]) 
    Reads the history */
 PHP_FUNCTION(readline_read_history)
 {
@@ -308,7 +308,7 @@ PHP_FUNCTION(readline_read_history)
 }
 
 /* }}} */
-/* {{{ proto int readline_write_history([string filename]) 
+/* {{{ proto bool readline_write_history([string filename]) 
    Writes the history */
 PHP_FUNCTION(readline_write_history)
 {
@@ -333,7 +333,7 @@ PHP_FUNCTION(readline_write_history)
 }
 
 /* }}} */
-/* {{{ proto void readline_completion_function(string funcname) 
+/* {{{ proto bool readline_completion_function(string funcname) 
    Readline completion function? */
 
 static char *_readline_command_generator(char *text,int state)
index ae4b5132ae3efc719678167f02a5032ee2d520b1..0b452dfcacc9ab0f78a2f6d99666a775ae1ccc6b 100644 (file)
@@ -125,7 +125,7 @@ PHP_MINFO_FUNCTION(sysvmsg)
 }
 /* }}} */
 
-/* {{{ proto array msg_set_queue(resource queue, array data)
+/* {{{ proto bool msg_set_queue(resource queue, array data)
    Set information for a message queue */
 PHP_FUNCTION(msg_set_queue)
 {
@@ -201,7 +201,7 @@ PHP_FUNCTION(msg_stat_queue)
 }
 /* }}} */
 
-/* {{{ proto resource msg_get_queue(long key [, long perms])
+/* {{{ proto resource msg_get_queue(int key [, int perms])
    Attach to a message queue */
 PHP_FUNCTION(msg_get_queue)
 {
@@ -251,7 +251,7 @@ PHP_FUNCTION(msg_remove_queue)
 }
 /* }}} */
 
-/* {{{ proto mixed msg_receive(resource queue, long desiredmsgtype, long &msgtype, long maxsize, mixed message [, bool unserialize=true [, long flags=0 [, long errorcode]]])
+/* {{{ proto mixed msg_receive(resource queue, int desiredmsgtype, int &msgtype, int maxsize, mixed message [, bool unserialize=true [, int flags=0 [, int errorcode]]])
    Send a message of type msgtype (must be > 0) to a message queue */
 PHP_FUNCTION(msg_receive)
 {
@@ -333,7 +333,7 @@ PHP_FUNCTION(msg_receive)
 }
 /* }}} */
 
-/* {{{ proto bool msg_send(resource queue, long msgtype, mixed message [, bool serialize=true [, bool blocking=true [, long errorcode]]])
+/* {{{ proto bool msg_send(resource queue, int msgtype, mixed message [, bool serialize=true [, bool blocking=true [, int errorcode]]])
    Send a message of type msgtype (must be > 0) to a message queue */
 PHP_FUNCTION(msg_send)
 {
index b58d3f91b6cfa92b4a26858541b217276af09372..b6f7a502f9a27d21affb49da30f9d6475b74904d 100644 (file)
@@ -165,7 +165,7 @@ PHP_MINIT_FUNCTION(sysvsem)
 #undef SETVAL_WANTS_PTR
 #endif
 
-/* {{{ proto int sem_get(int key [, int max_acquire [, int perm [, int auto_release]])
+/* {{{ proto resource sem_get(int key [, int max_acquire [, int perm [, int auto_release]])
    Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously */
 PHP_FUNCTION(sem_get)
 {
@@ -327,7 +327,7 @@ static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
 }
 /* }}} */
 
-/* {{{ proto int sem_acquire(int id)
+/* {{{ proto bool sem_acquire(resource id)
    Acquires the semaphore with the given id, blocking if necessary */
 PHP_FUNCTION(sem_acquire)
 {
@@ -335,7 +335,7 @@ PHP_FUNCTION(sem_acquire)
 }
 /* }}} */
 
-/* {{{ proto int sem_release(int id)
+/* {{{ proto bool sem_release(resource id)
    Releases the semaphore with the given id */
 PHP_FUNCTION(sem_release)
 {
@@ -343,7 +343,7 @@ PHP_FUNCTION(sem_release)
 }
 /* }}} */
 
-/* {{{ proto int sem_remove(int id)
+/* {{{ proto bool sem_remove(resource id)
    Removes semaphore from Unix systems */
 
 /*
index 05ed9f243d0502eb131b58018e09f548820c8651..9ff88c56aeeb5362016a9e382931799052568183 100644 (file)
@@ -174,7 +174,7 @@ PHP_FUNCTION(shm_attach)
 }
 /* }}} */
 
-/* {{{ proto int shm_detach(int shm_identifier)
+/* {{{ proto bool shm_detach(int shm_identifier)
    Disconnects from shared memory segment */
 PHP_FUNCTION(shm_detach)
 {
@@ -192,7 +192,7 @@ PHP_FUNCTION(shm_detach)
 }
 /* }}} */
 
-/* {{{ proto int shm_remove(int shm_identifier)
+/* {{{ proto bool shm_remove(int shm_identifier)
    Removes shared memory from Unix systems */
 PHP_FUNCTION(shm_remove)
 {
@@ -223,7 +223,7 @@ PHP_FUNCTION(shm_remove)
 }
 /* }}} */
 
-/* {{{ proto int shm_put_var(int shm_identifier, int variable_key, mixed variable)
+/* {{{ proto bool shm_put_var(int shm_identifier, int variable_key, mixed variable)
    Inserts or updates a variable in shared memory */
 PHP_FUNCTION(shm_put_var)
 {
@@ -318,7 +318,7 @@ PHP_FUNCTION(shm_get_var)
 }
 /* }}} */
 
-/* {{{ proto int shm_remove_var(int id, int variable_key)
+/* {{{ proto bool shm_remove_var(int id, int variable_key)
    Removes variable from shared memory */
 PHP_FUNCTION(shm_remove_var)
 {
index 4277825bb64821b7c957307411f4b93ad2d68a8d..74e3b4c1612272873b73f07d0f1aca6074e8b3bd 100644 (file)
@@ -255,7 +255,7 @@ static int strcmp_null(const char *s1, const char *s2)
        return strcmp(s1, s2);
 }
 
-/* {{{ proto int yaz_connect(string zurl [, array options])
+/* {{{ proto resource yaz_connect(string zurl [, array options])
    Create target with given zurl. Returns positive id if successful. */
 PHP_FUNCTION(yaz_connect)
 {
@@ -387,7 +387,7 @@ PHP_FUNCTION(yaz_connect)
 }
 /* }}} */
 
-/* {{{ proto int yaz_close(resource id)
+/* {{{ proto bool yaz_close(resource id)
    Destory and close target */
 PHP_FUNCTION(yaz_close)
 {
@@ -411,7 +411,7 @@ PHP_FUNCTION(yaz_close)
 }
 /* }}} */
 
-/* {{{ proto int yaz_search(resource id, string type, string query)
+/* {{{ proto bool yaz_search(resource id, string type, string query)
    Specify query of type for search - returns true if successful */
 PHP_FUNCTION(yaz_search)
 {
@@ -470,7 +470,7 @@ PHP_FUNCTION(yaz_search)
 }
 /* }}} */
 
-/* {{{ proto int yaz_present(resource id)
+/* {{{ proto bool yaz_present(resource id)
    Retrieve records */
 PHP_FUNCTION(yaz_present)
 {
@@ -501,7 +501,7 @@ PHP_FUNCTION(yaz_present)
 }
 /* }}} */
 
-/* {{{ proto int yaz_wait([array options])
+/* {{{ proto bool yaz_wait([array options])
    Process events. */
 PHP_FUNCTION(yaz_wait)
 {
@@ -984,7 +984,7 @@ PHP_FUNCTION(yaz_record)
 }
 /* }}} */
 
-/* {{{ proto int yaz_syntax(resource id, string syntax)
+/* {{{ proto void yaz_syntax(resource id, string syntax)
    Set record syntax for retrieval */
 PHP_FUNCTION(yaz_syntax)
 {
@@ -1002,7 +1002,7 @@ PHP_FUNCTION(yaz_syntax)
 }
 /* }}} */
 
-/* {{{ proto int yaz_element(resource id, string elementsetname)
+/* {{{ proto void yaz_element(resource id, string elementsetname)
    Set Element-Set-Name for retrieval */
 PHP_FUNCTION(yaz_element)
 {
@@ -1021,7 +1021,7 @@ PHP_FUNCTION(yaz_element)
 }
 /* }}} */
 
-/* {{{ proto int yaz_schema(resource id, string schema)
+/* {{{ proto void yaz_schema(resource id, string schema)
    Set Schema for retrieval */
 PHP_FUNCTION(yaz_schema)
 {
@@ -1039,7 +1039,7 @@ PHP_FUNCTION(yaz_schema)
 }
 /* }}} */
 
-/* {{{ proto int yaz_set_option(resource id, mixed options)
+/* {{{ proto void yaz_set_option(resource id, mixed options)
    Set Option(s) for connection */
 PHP_FUNCTION(yaz_set_option)
 {
@@ -1128,7 +1128,7 @@ PHP_FUNCTION(yaz_get_option)
 }
 /* }}} */
 
-/* {{{ proto int yaz_range(resource id, int start, int number)
+/* {{{ proto void yaz_range(resource id, int start, int number)
    Set result set start point and number of records to request */
 PHP_FUNCTION(yaz_range)
 {
@@ -1148,7 +1148,7 @@ PHP_FUNCTION(yaz_range)
 }
 /* }}} */
 
-/* {{{ proto int yaz_sort(resource id, string sortspec)
+/* {{{ proto void yaz_sort(resource id, string sortspec)
    Set result set sorting criteria */
 PHP_FUNCTION(yaz_sort)
 {
@@ -1174,7 +1174,7 @@ const char *ill_array_lookup (void *handle, const char *name)
        return array_lookup_string((HashTable *) handle, name);
 }
 
-/* {{{ proto int yaz_itemorder(resource id, array package)
+/* {{{ proto void yaz_itemorder(resource id, array package)
    Sends Item Order request */
 PHP_FUNCTION(yaz_itemorder)
 {
@@ -1203,7 +1203,7 @@ PHP_FUNCTION(yaz_itemorder)
 }
 /* }}} */
 
-/* {{{ proto int yaz_scan(resource id, type, query [, flags])
+/* {{{ proto void yaz_scan(resource id, type, query [, flags])
    Sends Scan Request */
 PHP_FUNCTION(yaz_scan)
 {
@@ -1244,7 +1244,7 @@ PHP_FUNCTION(yaz_scan)
 }
 /* }}} */
 
-/* {{{ proto int yaz_es_result(resource id)
+/* {{{ proto array yaz_es_result(resource id)
    Inspects Extended Services Result */
 PHP_FUNCTION(yaz_es_result)
 {
@@ -1269,7 +1269,7 @@ PHP_FUNCTION(yaz_es_result)
 }
 /* }}} */
 
-/* {{{ proto int yaz_scan_result(resource id [, array options])
+/* {{{ proto array yaz_scan_result(resource id [, array options])
    Inspects Scan Result */
 PHP_FUNCTION(yaz_scan_result)
 {
@@ -1342,7 +1342,7 @@ PHP_FUNCTION(yaz_scan_result)
 }
 /* }}} */
 
-/* {{{ proto int yaz_ccl_conf(resource id, array package)
+/* {{{ proto void yaz_ccl_conf(resource id, array package)
    Configure CCL package */
 PHP_FUNCTION(yaz_ccl_conf)
 {
@@ -1388,7 +1388,7 @@ PHP_FUNCTION(yaz_ccl_conf)
 }
 /* }}} */
 
-/* {{{ proto int yaz_ccl_parse(resource id, string query, array res)
+/* {{{ proto bool yaz_ccl_parse(resource id, string query, array res)
    Parse a CCL query */
 PHP_FUNCTION(yaz_ccl_parse)
 {
@@ -1432,7 +1432,7 @@ PHP_FUNCTION(yaz_ccl_parse)
 }
 /* }}} */
 
-/* {{{ proto int yaz_database (resource id, string databases)
+/* {{{ proto bool yaz_database (resource id, string databases)
    Specify the databases within a session */
 PHP_FUNCTION(yaz_database)
 {
index c46bde7f9f855216d5cf950cabf3329d7acedd3b..17ffb037665a380b3411858b78bd9e39d58f179f 100644 (file)
@@ -262,7 +262,7 @@ static int php_foreach_all (int instatus, char *inkey, int inkeylen, char *inval
 }
 /* }}} */
 
-/* {{{ proto void yp_all(string domain, string map, string callback)
+/* {{{ proto bool yp_all(string domain, string map, string callback)
    Traverse the map and call a function on each entry */
 PHP_FUNCTION(yp_all)
 {
index c4e1af414e41bdcc2cf3761ef113c8359e944cf8..0f3f923aea60e0e5bef8c20e76904c217f8dd3c8 100644 (file)
@@ -320,7 +320,7 @@ PHP_FUNCTION(gzfile)
 }
 /* }}} */
 
-/* {{{ proto int gzopen(string filename, string mode [, int use_include_path])
+/* {{{ proto resource gzopen(string filename, string mode [, int use_include_path])
    Open a .gz-file and return a .gz-file pointer */
 PHP_FUNCTION(gzopen)
 {