andrey Sat Jul 19 15:23:33 2003 EDT Modified files: /php-src/ext/pfpro pfpro.c /php-src/ext/pgsql pgsql.c /php-src/ext/posix posix.c /php-src/ext/pspell pspell.c /php-src/ext/readline readline.c /php-src/ext/sysvmsg sysvmsg.c /php-src/ext/sysvsem sysvsem.c /php-src/ext/sysvshm sysvshm.c /php-src/ext/yaz php_yaz.c /php-src/ext/yp yp.c /php-src/ext/zlib zlib.c Log: proto fixes
Index: php-src/ext/pfpro/pfpro.c diff -u php-src/ext/pfpro/pfpro.c:1.29 php-src/ext/pfpro/pfpro.c:1.30 --- php-src/ext/pfpro/pfpro.c:1.29 Tue Jun 10 16:03:34 2003 +++ php-src/ext/pfpro/pfpro.c Sat Jul 19 15:23:32 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pfpro.c,v 1.29 2003/06/10 20:03:34 imajes Exp $ */ +/* $Id: pfpro.c,v 1.30 2003/07/19 19:23:32 andrey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -151,7 +151,7 @@ } /* }}} */ -/* {{{ proto void pfpro_init() +/* {{{ proto bool pfpro_init() Initializes the Payflow Pro library */ PHP_FUNCTION(pfpro_init) { @@ -167,7 +167,7 @@ } /* }}} */ -/* {{{ proto void pfpro_cleanup() +/* {{{ proto bool pfpro_cleanup() Shuts down the Payflow Pro library */ PHP_FUNCTION(pfpro_cleanup) { Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.277 php-src/ext/pgsql/pgsql.c:1.278 --- php-src/ext/pgsql/pgsql.c:1.277 Sun Jun 22 12:46:24 2003 +++ php-src/ext/pgsql/pgsql.c Sat Jul 19 15:23:32 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.277 2003/06/22 16:46:24 iliaa Exp $ */ +/* $Id: pgsql.c,v 1.278 2003/07/19 19:23:32 andrey Exp $ */ #include <stdlib.h> @@ -1443,7 +1443,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ proto resource pg_get_pid([resource connection) +/* {{{ proto int pg_get_pid([resource connection) Get backend(server) pid */ PHP_FUNCTION(pg_get_pid) { Index: php-src/ext/posix/posix.c diff -u php-src/ext/posix/posix.c:1.56 php-src/ext/posix/posix.c:1.57 --- php-src/ext/posix/posix.c:1.56 Tue Jun 10 16:03:35 2003 +++ php-src/ext/posix/posix.c Sat Jul 19 15:23:32 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: posix.c,v 1.56 2003/06/10 20:03:35 imajes Exp $ */ +/* $Id: posix.c,v 1.57 2003/07/19 19:23:32 andrey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -130,7 +130,7 @@ static PHP_MINFO_FUNCTION(posix) { php_info_print_table_start(); - php_info_print_table_row(2, "Revision", "$Revision: 1.56 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.57 $"); php_info_print_table_end(); } /* }}} */ @@ -960,7 +960,7 @@ /* }}} */ -/* {{{ 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: php-src/ext/pspell/pspell.c diff -u php-src/ext/pspell/pspell.c:1.34 php-src/ext/pspell/pspell.c:1.35 --- php-src/ext/pspell/pspell.c:1.34 Wed Jun 11 21:47:12 2003 +++ php-src/ext/pspell/pspell.c Sat Jul 19 15:23:32 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pspell.c,v 1.34 2003/06/12 01:47:12 iliaa Exp $ */ +/* $Id: pspell.c,v 1.35 2003/07/19 19:23:32 andrey Exp $ */ #define IS_EXT_MODULE @@ -316,7 +316,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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: php-src/ext/readline/readline.c diff -u php-src/ext/readline/readline.c:1.33 php-src/ext/readline/readline.c:1.34 --- php-src/ext/readline/readline.c:1.33 Tue Jun 10 16:03:35 2003 +++ php-src/ext/readline/readline.c Sat Jul 19 15:23:32 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: readline.c,v 1.33 2003/06/10 20:03:35 imajes Exp $ */ +/* $Id: readline.c,v 1.34 2003/07/19 19:23:32 andrey Exp $ */ /* {{{ includes & prototypes */ @@ -222,7 +222,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ proto void readline_clear_history(void) +/* {{{ proto bool readline_clear_history(void) Clears the history */ PHP_FUNCTION(readline_clear_history) { @@ -281,7 +281,7 @@ } #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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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: php-src/ext/sysvmsg/sysvmsg.c diff -u php-src/ext/sysvmsg/sysvmsg.c:1.11 php-src/ext/sysvmsg/sysvmsg.c:1.12 --- php-src/ext/sysvmsg/sysvmsg.c:1.11 Tue Jun 10 16:03:39 2003 +++ php-src/ext/sysvmsg/sysvmsg.c Sat Jul 19 15:23:33 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sysvmsg.c,v 1.11 2003/06/10 20:03:39 imajes Exp $ */ +/* $Id: sysvmsg.c,v 1.12 2003/07/19 19:23:33 andrey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -120,12 +120,12 @@ { php_info_print_table_start(); php_info_print_table_row(2, "sysvmsg support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.11 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.12 $"); php_info_print_table_end(); } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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: php-src/ext/sysvsem/sysvsem.c diff -u php-src/ext/sysvsem/sysvsem.c:1.46 php-src/ext/sysvsem/sysvsem.c:1.47 --- php-src/ext/sysvsem/sysvsem.c:1.46 Tue Jun 10 16:03:39 2003 +++ php-src/ext/sysvsem/sysvsem.c Sat Jul 19 15:23:33 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sysvsem.c,v 1.46 2003/06/10 20:03:39 imajes Exp $ */ +/* $Id: sysvsem.c,v 1.47 2003/07/19 19:23:33 andrey Exp $ */ /* Latest update build anc tested on Linux 2.2.14 * @@ -165,7 +165,7 @@ #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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ proto int sem_remove(int id) +/* {{{ proto bool sem_remove(resource id) Removes semaphore from Unix systems */ /* Index: php-src/ext/sysvshm/sysvshm.c diff -u php-src/ext/sysvshm/sysvshm.c:1.63 php-src/ext/sysvshm/sysvshm.c:1.64 --- php-src/ext/sysvshm/sysvshm.c:1.63 Tue Jun 10 16:03:39 2003 +++ php-src/ext/sysvshm/sysvshm.c Sat Jul 19 15:23:33 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sysvshm.c,v 1.63 2003/06/10 20:03:39 imajes Exp $ */ +/* $Id: sysvshm.c,v 1.64 2003/07/19 19:23:33 andrey Exp $ */ /* This has been built and tested on Linux 2.2.14 * @@ -174,7 +174,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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: php-src/ext/yaz/php_yaz.c diff -u php-src/ext/yaz/php_yaz.c:1.76 php-src/ext/yaz/php_yaz.c:1.77 --- php-src/ext/yaz/php_yaz.c:1.76 Fri Jul 4 15:17:08 2003 +++ php-src/ext/yaz/php_yaz.c Sat Jul 19 15:23:33 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_yaz.c,v 1.76 2003/07/04 19:17:08 dickmeiss Exp $ */ +/* $Id: php_yaz.c,v 1.77 2003/07/19 19:23:33 andrey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -255,7 +255,7 @@ 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 @@ } /* }}} */ -/* {{{ proto int yaz_close(resource id) +/* {{{ proto bool yaz_close(resource id) Destory and close target */ PHP_FUNCTION(yaz_close) { @@ -411,7 +411,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ proto int yaz_present(resource id) +/* {{{ proto bool yaz_present(resource id) Retrieve records */ PHP_FUNCTION(yaz_present) { @@ -501,7 +501,7 @@ } /* }}} */ -/* {{{ proto int yaz_wait([array options]) +/* {{{ proto bool yaz_wait([array options]) Process events. */ PHP_FUNCTION(yaz_wait) { @@ -984,7 +984,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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: php-src/ext/yp/yp.c diff -u php-src/ext/yp/yp.c:1.38 php-src/ext/yp/yp.c:1.39 --- php-src/ext/yp/yp.c:1.38 Tue Jun 10 16:03:41 2003 +++ php-src/ext/yp/yp.c Sat Jul 19 15:23:33 2003 @@ -16,7 +16,7 @@ | Fredrik Ohrn | +----------------------------------------------------------------------+ */ -/* $Id: yp.c,v 1.38 2003/06/10 20:03:41 imajes Exp $ */ +/* $Id: yp.c,v 1.39 2003/07/19 19:23:33 andrey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -262,7 +262,7 @@ } /* }}} */ -/* {{{ 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: php-src/ext/zlib/zlib.c diff -u php-src/ext/zlib/zlib.c:1.171 php-src/ext/zlib/zlib.c:1.172 --- php-src/ext/zlib/zlib.c:1.171 Tue Jun 10 16:03:41 2003 +++ php-src/ext/zlib/zlib.c Sat Jul 19 15:23:33 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zlib.c,v 1.171 2003/06/10 20:03:41 imajes Exp $ */ +/* $Id: zlib.c,v 1.172 2003/07/19 19:23:33 andrey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -320,7 +320,7 @@ } /* }}} */ -/* {{{ 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) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php