diff options
author | Andrey Hristov <andrey@php.net> | 2003-07-19 19:23:34 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2003-07-19 19:23:34 +0000 |
commit | 5fcc682ebc5968fa4cbdf04ce143f801cd059fdd (patch) | |
tree | 831ed1cfbaa474ed388e6c646629e9288d34d65b | |
parent | 71990112b77fe911ce743892758f5aef932eef84 (diff) | |
download | php-git-5fcc682ebc5968fa4cbdf04ce143f801cd059fdd.tar.gz |
proto fixes
-rw-r--r-- | ext/pfpro/pfpro.c | 4 | ||||
-rw-r--r-- | ext/pgsql/pgsql.c | 8 | ||||
-rw-r--r-- | ext/posix/posix.c | 2 | ||||
-rw-r--r-- | ext/pspell/pspell.c | 24 | ||||
-rw-r--r-- | ext/readline/readline.c | 10 | ||||
-rw-r--r-- | ext/sysvmsg/sysvmsg.c | 8 | ||||
-rw-r--r-- | ext/sysvsem/sysvsem.c | 8 | ||||
-rw-r--r-- | ext/sysvshm/sysvshm.c | 8 | ||||
-rw-r--r-- | ext/yaz/php_yaz.c | 36 | ||||
-rw-r--r-- | ext/yp/yp.c | 2 | ||||
-rw-r--r-- | ext/zlib/zlib.c | 2 |
11 files changed, 56 insertions, 56 deletions
diff --git a/ext/pfpro/pfpro.c b/ext/pfpro/pfpro.c index 57e0dd1b0e..d8411f82be 100644 --- a/ext/pfpro/pfpro.c +++ b/ext/pfpro/pfpro.c @@ -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) { diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 7374963c85..f1e3aeafac 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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) { diff --git a/ext/posix/posix.c b/ext/posix/posix.c index c0d289cb68..3036198235 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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) { diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index 2f5993030c..ec7b8d9bd6 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -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) { diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 2fecea5644..d15e9614d5 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -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) diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c index ae4b5132ae..0b452dfcac 100644 --- a/ext/sysvmsg/sysvmsg.c +++ b/ext/sysvmsg/sysvmsg.c @@ -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) { diff --git a/ext/sysvsem/sysvsem.c b/ext/sysvsem/sysvsem.c index b58d3f91b6..b6f7a502f9 100644 --- a/ext/sysvsem/sysvsem.c +++ b/ext/sysvsem/sysvsem.c @@ -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 */ /* diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c index 05ed9f243d..9ff88c56ae 100644 --- a/ext/sysvshm/sysvshm.c +++ b/ext/sysvshm/sysvshm.c @@ -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) { diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 4277825bb6..74e3b4c161 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -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) { diff --git a/ext/yp/yp.c b/ext/yp/yp.c index c46bde7f9f..17ffb03766 100644 --- a/ext/yp/yp.c +++ b/ext/yp/yp.c @@ -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) { diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index c4e1af414e..0f3f923aea 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -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) { |