CVS update: php3/functions
| From: | jah | Date: | Mon, 04 Jan 1999 12:16:30 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3243@lists.php.net to get a copy of this message | ||
Date: Monday January 4, 1999 @ 7:16
Author: jah
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv1546/functions
Modified Files:
COM.c hw.c imap.c sybase.c
Log Message:
Added protos and fixed existing ones. Removed a few newlines that somehow
slipped into COM.c.
Index: php3/functions/COM.c
diff -c php3/functions/COM.c:1.5 php3/functions/COM.c:1.6
*** php3/functions/COM.c:1.5 Mon Jan 4 02:38:14 1999
--- php3/functions/COM.c Mon Jan 4 07:16:29 1999
***************
*** 29,35 ****
/* !!!! experimental, use at your own risk! !!!!
! $Id: COM.c,v 1.5 1999/01/04 07:38:14 jah Exp $ */
#if WIN32|WINNT
--- 29,35 ----
/* !!!! experimental, use at your own risk! !!!!
! $Id: COM.c,v 1.6 1999/01/04 12:16:29 jah Exp $ */
#if WIN32|WINNT
***************
*** 46,56 ****
{"com_load", php3_COM_load, NULL},
{"com_invoke", php3_COM_invoke, NULL},
{"com_propget", php3_COM_propget, NULL},
-
{"com_get", php3_COM_propget, NULL},
{"com_propput", php3_COM_propput, NULL},
{"com_propset", php3_COM_propput, NULL},
-
{"com_set", php3_COM_propput, NULL},
{NULL, NULL, NULL}
};
--- 46,54 ----
***************
*** 259,265 ****
var_arg->vt = VT_EMPTY;
break;
case IS_LONG:
-
var_arg->vt = VT_I4; // assuming 32-bit platform
var_arg->lVal = pval_arg->value.lval;
break;
--- 257,262 ----
***************
*** 504,506 ****
--- 501,511 ----
/* }}} */
#endif
+
+
+ /*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */
Index: php3/functions/hw.c
diff -c php3/functions/hw.c:1.19 php3/functions/hw.c:1.20
*** php3/functions/hw.c:1.19 Fri Jan 1 12:59:11 1999
--- php3/functions/hw.c Mon Jan 4 07:16:29 1999
***************
*** 23,29 ****
+----------------------------------------------------------------------+
*/
! /* $Id: hw.c,v 1.19 1999/01/01 17:59:11 zeev Exp $ */
#if COMPILE_DL
#include "dl/phpdl.h"
#endif
--- 23,29 ----
+----------------------------------------------------------------------+
*/
! /* $Id: hw.c,v 1.20 1999/01/04 12:16:29 jah Exp $ */
#if COMPILE_DL
#include "dl/phpdl.h"
#endif
***************
*** 859,865 ****
}
/* }}} */
! /* {{{ proto hw_root(void)
Returns object id of root collection */
void php3_hw_root(INTERNAL_FUNCTION_PARAMETERS)
{
--- 859,865 ----
}
/* }}} */
! /* {{{ proto int hw_root(void)
Returns object id of root collection */
void php3_hw_root(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 1022,1027 ****
--- 1022,1029 ----
}
/* }}} */
+ /* {{{ proto string hw_dummy(int link, int id, int msgid)
+ */
void php3_hw_dummy(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2, *arg3;
int link, id, type, msgid;
***************
*** 1055,1060 ****
--- 1057,1063 ----
return_value->type = IS_STRING;
}
}
+ /* }}} */
/* {{{ proto string hw_getobject(int link, int objid)
Returns object record */
***************
*** 1761,1767 ****
return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document);
return_value->type = IS_LONG;
}
! } /* }}} */
/* {{{ proto hwdoc hw_pipecgi(int link, int objid)
Returns output of cgi script */
--- 1764,1771 ----
return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document);
return_value->type = IS_LONG;
}
! }
! /* }}} */
/* {{{ proto hwdoc hw_pipecgi(int link, int objid)
Returns output of cgi script */
***************
*** 1824,1830 ****
return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document);
return_value->type = IS_LONG;
}
! } /* }}} */
/* {{{ proto void hw_insertdocument(int link, int parentid, hwdoc doc)
Insert new document */
--- 1828,1835 ----
return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document);
return_value->type = IS_LONG;
}
! }
! /* }}} */
/* {{{ proto void hw_insertdocument(int link, int parentid, hwdoc doc)
Insert new document */
***************
*** 1872,1878 ****
}
}
RETURN_TRUE;
! } /* }}} */
/* {{{ proto hwdoc hw_new_document(int link, string data, string objrec, int size)
Create a new document */
--- 1877,1884 ----
}
}
RETURN_TRUE;
! }
! /* }}} */
/* {{{ proto hwdoc hw_new_document(int link, string data, string objrec, int size)
Create a new document */
***************
*** 1896,1902 ****
doc->size = arg3->value.lval;
return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document);
return_value->type = IS_LONG;
! } /* }}} */
/* {{{ proto void hw_free_document(hwdoc doc)
Frees memory of document */
--- 1902,1909 ----
doc->size = arg3->value.lval;
return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document);
return_value->type = IS_LONG;
! }
! /* }}} */
/* {{{ proto void hw_free_document(hwdoc doc)
Frees memory of document */
***************
*** 1918,1924 ****
}
php3_list_delete(id);
RETURN_TRUE;
! } /* }}} */
/* {{{ proto void hw_output_document(hwdoc doc)
Prints document */
--- 1925,1936 ----
}
php3_list_delete(id);
RETURN_TRUE;
! }
! /* }}} */
!
! /* {{{ proto void hw_outputdocument(hwdoc doc)
! Dummy */
! /* }}} */
/* {{{ proto void hw_output_document(hwdoc doc)
Prints document */
***************
*** 1950,1956 ****
}
RETURN_TRUE;
! } /* }}} */
/* {{{ proto string hw_document_bodytag(hwdoc doc [, string prefix])
Return bodytag prefixed by prefix */
--- 1962,1973 ----
}
RETURN_TRUE;
! }
! /* }}} */
!
! /* {{{ proto string hw_documentbodytag(hwdoc doc [, string prefix])
! Dummy */
! /* }}} */
/* {{{ proto string hw_document_bodytag(hwdoc doc [, string prefix])
Return bodytag prefixed by prefix */
***************
*** 1990,1996 ****
} else {
RETURN_STRING(ptr->bodytag, 1);
}
! } /* }}} */
/* {{{ proto string hw_document_content(hwdoc doc)
Returns content of document */
--- 2007,2014 ----
} else {
RETURN_STRING(ptr->bodytag, 1);
}
! }
! /* }}} */
/* {{{ proto string hw_document_content(hwdoc doc)
Returns content of document */
***************
*** 2016,2024 ****
}
RETURN_STRING(ptr->data, 1);
! } /* }}} */
! /* {{{ proto int hw_document_content(hwdoc doc)
Returns size of document */
void php3_hw_document_size(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1;
--- 2034,2047 ----
}
RETURN_STRING(ptr->data, 1);
! }
! /* }}} */
! /* {{{ proto int hw_documentsize(hwdoc doc)
! Dummy */
! /* }}} */
!
! /* {{{ proto int hw_document_size(hwdoc doc)
Returns size of document */
void php3_hw_document_size(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1;
***************
*** 2038,2046 ****
}
RETURN_LONG(ptr->size);
! } /* }}} */
! /* {{{ proto string hw_document_content(hwdoc doc)
Returns object record of document */
void php3_hw_document_attributes(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1;
--- 2061,2074 ----
}
RETURN_LONG(ptr->size);
! }
! /* }}} */
! /* {{{ proto string hw_documentattributes(hwdoc doc)
! Dummy */
! /* }}} */
!
! /* {{{ proto string hw_document_attributes(hwdoc doc)
Returns object record of document */
void php3_hw_document_attributes(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1;
***************
*** 2061,2067 ****
RETURN_STRING(ptr->attributes, 1);
/* make_return_array_from_objrec(&return_value, ptr->attributes); */
! } /* }}} */
/* {{{ proto array hw_getparentsobj(int link, int objid)
Returns array of parent object records */
--- 2089,2096 ----
RETURN_STRING(ptr->attributes, 1);
/* make_return_array_from_objrec(&return_value, ptr->attributes); */
! }
! /* }}} */
/* {{{ proto array hw_getparentsobj(int link, int objid)
Returns array of parent object records */
***************
*** 2096,2102 ****
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! } /* }}} */
/* {{{ proto array hw_getparents(int link, int objid)
Returns array of parent object ids */
--- 2125,2132 ----
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
/* {{{ proto array hw_getparents(int link, int objid)
Returns array of parent object ids */
***************
*** 2141,2147 ****
efree(childIDs);
}
! } /* }}} */
/* {{{ proto array hw_children(int link, int objid)
Returns array of children object ids */
--- 2171,2178 ----
efree(childIDs);
}
! }
! /* }}} */
/* {{{ proto array hw_children(int link, int objid)
Returns array of children object ids */
***************
*** 2186,2194 ****
efree(childIDs);
}
! } /* }}} */
! /* {{{ proto array hw_children(int link, int objid)
Returns array of children object records */
void php3_hw_childrenobj(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2;
--- 2217,2226 ----
efree(childIDs);
}
! }
! /* }}} */
! /* {{{ proto array hw_childrenobj(int link, int objid)
Returns array of children object records */
void php3_hw_childrenobj(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2;
***************
*** 2221,2229 ****
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! } /* }}} */
! /* {{{ proto array hw_childcoll(int link, int objid)
Returns array of child collection object ids */
void php3_hw_getchildcoll(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2;
--- 2253,2262 ----
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
! /* {{{ proto array hw_getchildcoll(int link, int objid)
Returns array of child collection object ids */
void php3_hw_getchildcoll(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2;
***************
*** 2266,2274 ****
efree(childIDs);
}
! } /* }}} */
! /* {{{ proto array hw_childcollobj(int link, int objid)
Returns array of child collection object records */
void php3_hw_getchildcollobj(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2;
--- 2299,2308 ----
efree(childIDs);
}
! }
! /* }}} */
! /* {{{ proto array hw_getchildcollobj(int link, int objid)
Returns array of child collection object records */
void php3_hw_getchildcollobj(INTERNAL_FUNCTION_PARAMETERS) {
pval *arg1, *arg2;
***************
*** 2301,2307 ****
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! } /* }}} */
/* {{{ proto int hw_docbyanchor(int link, int anchorid)
Returns objid of document belonging to anchorid */
--- 2335,2342 ----
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
/* {{{ proto int hw_docbyanchor(int link, int anchorid)
Returns objid of document belonging to anchorid */
***************
*** 2332,2338 ****
RETURN_LONG(objectID);
}
! } /* }}} */
/* {{{ proto array hw_docbyanchorobj(int link, int anchorid)
Returns object record of document belonging to anchorid */
--- 2367,2374 ----
RETURN_LONG(objectID);
}
! }
! /* }}} */
/* {{{ proto array hw_docbyanchorobj(int link, int anchorid)
Returns object record of document belonging to anchorid */
***************
*** 2367,2373 ****
efree(object);
*/
}
! } /* }}} */
/* {{{ proto array hw_getobjectbyquery(int link, string query, int maxhits)
Search for query and return maxhits objids */
--- 2403,2410 ----
efree(object);
*/
}
! }
! /* }}} */
/* {{{ proto array hw_getobjectbyquery(int link, string query, int maxhits)
Search for query and return maxhits objids */
***************
*** 2410,2416 ****
for(i=0; i<count; i++)
add_index_long(return_value, i, childIDs[i]);
efree(childIDs);
! } /* }}} */
/* {{{ proto array hw_getobjectbyqueryobj(int link, string query, int maxhits)
Search for query and return maxhits object records */
--- 2447,2454 ----
for(i=0; i<count; i++)
add_index_long(return_value, i, childIDs[i]);
efree(childIDs);
! }
! /* }}} */
/* {{{ proto array hw_getobjectbyqueryobj(int link, string query, int maxhits)
Search for query and return maxhits object records */
***************
*** 2448,2454 ****
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! } /* }}} */
/* {{{ proto array hw_getobjectbyquerycoll(int link, int collid, string query, int maxhits)
Search for query in collection and return maxhits objids */
--- 2486,2493 ----
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
/* {{{ proto array hw_getobjectbyquerycoll(int link, int collid, string query, int maxhits)
Search for query in collection and return maxhits objids */
***************
*** 2493,2499 ****
for(i=0; i<count; i++)
add_index_long(return_value, i, childIDs[i]);
efree(childIDs);
! } /* }}} */
/* {{{ proto array hw_getobjectbyquerycollobj(int link, int collid, string query, int maxhits)
Search for query in collection and return maxhits object records */
--- 2532,2539 ----
for(i=0; i<count; i++)
add_index_long(return_value, i, childIDs[i]);
efree(childIDs);
! }
! /* }}} */
/* {{{ proto array hw_getobjectbyquerycollobj(int link, int collid, string query, int maxhits)
Search for query in collection and return maxhits object records */
***************
*** 2533,2539 ****
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! } /* }}} */
/* {{{ proto array hw_getchilddoccoll(int link, int objid)
Returns all children ids which are documents */
--- 2573,2580 ----
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
/* {{{ proto array hw_getchilddoccoll(int link, int objid)
Returns all children ids which are documents */
***************
*** 2572,2578 ****
for(i=0; i<count; i++)
add_index_long(return_value, i, childIDs[i]);
efree(childIDs);
! } /* }}} */
/* {{{ proto array hw_getchilddoccollobj(int link, int objid)
Returns all children object records which are documents */
--- 2613,2620 ----
for(i=0; i<count; i++)
add_index_long(return_value, i, childIDs[i]);
efree(childIDs);
! }
! /* }}} */
/* {{{ proto array hw_getchilddoccollobj(int link, int objid)
Returns all children object records which are documents */
***************
*** 2607,2613 ****
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! } /* }}} */
/* {{{ proto array hw_getanchors(int link, int objid)
Return all anchors of object */
--- 2649,2656 ----
if( 0 > make_return_objrec(&return_value, childObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
/* {{{ proto array hw_getanchors(int link, int objid)
Return all anchors of object */
***************
*** 2646,2652 ****
for(i=0; i<count; i++)
add_index_long(return_value, i, anchorIDs[i]);
efree(anchorIDs);
! } /* }}} */
/* {{{ proto array hw_getanchorsobj(int link, int objid)
Return all object records of anchors of object */
--- 2689,2696 ----
for(i=0; i<count; i++)
add_index_long(return_value, i, anchorIDs[i]);
efree(anchorIDs);
! }
! /* }}} */
/* {{{ proto array hw_getanchorsobj(int link, int objid)
Return all object records of anchors of object */
***************
*** 2680,2686 ****
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, anchorObjRecs, count))
RETURN_FALSE;
! } /* }}} */
/* {{{ proto string hw_getusername(int link)
Returns the current user name */
--- 2724,2731 ----
/* create return value and free all memory */
if( 0 > make_return_objrec(&return_value, anchorObjRecs, count))
RETURN_FALSE;
! }
! /* }}} */
/* {{{ proto string hw_getusername(int link)
Returns the current user name */
***************
*** 2704,2711 ****
return_value->value.str.val = estrdup(ptr->username);
return_value->value.str.len = strlen(ptr->username);
return_value->type = IS_STRING;
! } /* }}} */
!
/* {{{ proto void hw_identify(int link, string username, string password)
Identifies at Hyperwave server */
--- 2749,2756 ----
return_value->value.str.val = estrdup(ptr->username);
return_value->value.str.len = strlen(ptr->username);
return_value->type = IS_STRING;
! }
! /* }}} */
/* {{{ proto void hw_identify(int link, string username, string password)
Identifies at Hyperwave server */
***************
*** 2893,2899 ****
}
/* }}} */
! /* {{{ proto void hw_inscoll(int link, int parentid, array objarr [, string text])
Inserts document */
void php3_hw_insdoc(INTERNAL_FUNCTION_PARAMETERS) {
pval *argv[4];
--- 2938,2944 ----
}
/* }}} */
! /* {{{ proto void hw_insdoc(int link, int parentid, array objarr [, string text])
Inserts document */
void php3_hw_insdoc(INTERNAL_FUNCTION_PARAMETERS) {
pval *argv[4];
***************
*** 3014,3019 ****
--- 3059,3066 ----
php3_printf("HG-CSP Version: 7.17");
}
+ /* {{{ proto void hw_connection_info(int link)
+ */
void php3_hw_connection_info(INTERNAL_FUNCTION_PARAMETERS)
{
pval *arg1;
***************
*** 3033,3038 ****
--- 3080,3086 ----
php3_printf("Hyperwave Info:\nhost=%s,\nserver string=%s\nversion=%d\nswap=%d\n",
ptr->hostname, ptr->server_string, ptr->version, ptr->swap_on);
}
+ /* }}} */
void print_msg(hg_msg *msg, char *str, int txt)
{
***************
*** 3062,3066 ****
--- 3110,3115 ----
/*
* Local variables:
* tab-width: 4
+ * c-basic-offset: 4
* End:
*/
Index: php3/functions/imap.c
diff -c php3/functions/imap.c:1.50 php3/functions/imap.c:1.51
*** php3/functions/imap.c:1.50 Fri Jan 1 12:59:11 1999
--- php3/functions/imap.c Mon Jan 4 07:16:29 1999
***************
*** 31,37 ****
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: imap.c,v 1.50 1999/01/01 17:59:11 zeev Exp $ */
#define IMAP41
--- 31,37 ----
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: imap.c,v 1.51 1999/01/04 12:16:29 jah Exp $ */
#define IMAP41
***************
*** 540,546 ****
}
/* }}} */
! /* {{{ proto imap_num_msg(int stream_id)
Gives the number of messages in the current mailbox */
void php3_imap_num_msg(INTERNAL_FUNCTION_PARAMETERS)
{
--- 540,546 ----
}
/* }}} */
! /* {{{ proto int imap_num_msg(int stream_id)
Gives the number of messages in the current mailbox */
void php3_imap_num_msg(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 737,743 ****
}
/* }}} */
! /* {{{ proto imap_body(int stream_id, int msg_no [, int options])
Read the message body */
void php3_imap_body(INTERNAL_FUNCTION_PARAMETERS)
{
--- 737,747 ----
}
/* }}} */
! /* {{{ proto string imap_fetchtext(int stream_id, int msg_no [, int options])
! Dummy */
! /* }}} */
!
! /* {{{ proto string imap_body(int stream_id, int msg_no [, int options])
Read the message body */
void php3_imap_body(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 822,828 ****
}
/* }}} */
! /* {{{ proto imap_mail_move(int stream_id, int msg_no, string mailbox)
Move specified message to a mailbox */
void php3_imap_mail_move(INTERNAL_FUNCTION_PARAMETERS)
{
--- 826,832 ----
}
/* }}} */
! /* {{{ proto bool imap_mail_move(int stream_id, int msg_no, string mailbox)
Move specified message to a mailbox */
void php3_imap_mail_move(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 854,859 ****
--- 858,867 ----
}
/* }}} */
+ /* {{{ proto int imap_create(int stream_id, string mailbox)
+ Dummy */
+ /* }}} */
+
/* {{{ proto int imap_createmailbox(int stream_id, string mailbox)
Create a new mailbox */
void php3_imap_createmailbox(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 884,889 ****
--- 892,901 ----
}
/* }}} */
+ /* {{{ proto int imap_rename(int stream_id, string old_name, string new_name)
+ Dummy */
+ /* }}} */
+
/* {{{ proto int imap_renamemailbox(int stream_id, string old_name, string new_name)
Rename a mailbox */
void php3_imap_renamemailbox(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 915,921 ****
}
/* }}} */
! /* {{{ proto imap_deletemailbox(int stream_id, string mailbox)
Delete a mailbox */
void php3_imap_deletemailbox(INTERNAL_FUNCTION_PARAMETERS)
{
--- 927,933 ----
}
/* }}} */
! /* {{{ proto bool imap_deletemailbox(int stream_id, string mailbox)
Delete a mailbox */
void php3_imap_deletemailbox(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 945,950 ****
--- 957,966 ----
}
/* }}} */
+ /* {{{ proto array imap_listmailbox(int stream_id, string ref, string pattern)
+ Dummy */
+ /* }}} */
+
/* {{{ proto array imap_list(int stream_id, string ref, string pattern)
Read the list of mailboxes */
void php3_imap_list(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 985,991 ****
}
/* }}} */
! /* {{{ proto imap_scan(int stream_id, string ref, string pattern, string content)
Read list of mailboxes containing a certain string */
void php3_imap_listscan(INTERNAL_FUNCTION_PARAMETERS)
{
--- 1001,1011 ----
}
/* }}} */
! /* {{{ proto array imap_scanmailbox(int stream_id, string ref, string pattern, string content)
! Dummy */
! /* }}} */
!
! /* {{{ proto array imap_scan(int stream_id, string ref, string pattern, string content)
Read list of mailboxes containing a certain string */
void php3_imap_listscan(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 1121,1126 ****
--- 1141,1150 ----
}
/* }}} */
+ /* {{{ proto object imap_headerinfo(int stream_id, int msg_no [, int from_length [, int
subject_length [, string default_host]]])
+ Dummy */
+ /* }}} */
+
/* {{{ proto object imap_header(int stream_id, int msg_no [, int from_length [, int subject_length
[, string default_host]]])
Read the header of the message */
void php3_imap_headerinfo(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 1479,1484 ****
--- 1503,1512 ----
/* }}} */
/* KMLANG */
+ /* {{{ proto array imap_listsubscribed(int stream_id, string ref, string pattern)
+ Dummy */
+ /* }}} */
+
/* {{{ proto array imap_lsub(int stream_id, string ref, string pattern)
Return a list of subscribed mailboxes */
void php3_imap_lsub(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 1962,1968 ****
}
/* }}} */
! /* {{{ proto imap_clearflag_full(int stream_id, string sequence, string flag [, int options])
Clears flags on messages */
void php3_imap_clearflag_full(INTERNAL_FUNCTION_PARAMETERS)
{
--- 1990,1996 ----
}
/* }}} */
! /* {{{ proto void imap_clearflag_full(int stream_id, string sequence, string flag [, int options])
Clears flags on messages */
void php3_imap_clearflag_full(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 2668,2670 ****
--- 2696,2705 ----
}
#endif
+
+ /*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */
Index: php3/functions/sybase.c
diff -c php3/functions/sybase.c:1.107 php3/functions/sybase.c:1.108
*** php3/functions/sybase.c:1.107 Fri Jan 1 12:59:18 1999
--- php3/functions/sybase.c Mon Jan 4 07:16:29 1999
***************
*** 31,37 ****
+----------------------------------------------------------------------+
*/
! /* $Id: sybase.c,v 1.107 1999/01/01 17:59:18 zeev Exp $ */
#ifndef MSVC5
--- 31,37 ----
+----------------------------------------------------------------------+
*/
! /* $Id: sybase.c,v 1.108 1999/01/04 12:16:29 jah Exp $ */
#ifndef MSVC5
***************
*** 510,526 ****
}
void php3_sybase_connect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
}
void php3_sybase_pconnect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
}
!
void php3_sybase_close(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_link_index;
--- 510,533 ----
}
+ /* {{{ proto int sybase_connect([string host[, string user[, string password]]])
+ */
void php3_sybase_connect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
}
+ /* }}} */
+ /* {{{ proto int sybase_pconnect([string host[, string user[, string password]]])
+ */
void php3_sybase_pconnect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
}
+ /* }}} */
! /* {{{ proto bool sybase_close([int link_id])
! */
void php3_sybase_close(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_link_index;
***************
*** 551,558 ****
php3_list_delete(id);
RETURN_TRUE;
}
!
void php3_sybase_select_db(INTERNAL_FUNCTION_PARAMETERS)
{
pval *db,*sybase_link_index;
--- 558,567 ----
php3_list_delete(id);
RETURN_TRUE;
}
+ /* }}} */
! /* {{{ proto bool sybase_select_db(string database[, int link_id])
! */
void php3_sybase_select_db(INTERNAL_FUNCTION_PARAMETERS)
{
pval *db,*sybase_link_index;
***************
*** 595,601 ****
RETURN_TRUE;
}
}
!
static void php3_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pval *result, int
column_type)
{
--- 604,610 ----
RETURN_TRUE;
}
}
! /* }}} */
static void php3_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pval *result, int
column_type)
{
***************
*** 674,680 ****
}
}
!
void php3_sybase_query(INTERNAL_FUNCTION_PARAMETERS)
{
pval *query,*sybase_link_index;
--- 683,690 ----
}
}
! /* {{{ proto int sybase_query(string query[, int link_id])
! */
void php3_sybase_query(INTERNAL_FUNCTION_PARAMETERS)
{
pval *query,*sybase_link_index;
***************
*** 810,817 ****
return_value->value.lval = php3_list_insert(result,php3_sybase_module.le_result);
return_value->type = IS_LONG;
}
!
void php3_sybase_free_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index;
--- 820,829 ----
return_value->value.lval = php3_list_insert(result,php3_sybase_module.le_result);
return_value->type = IS_LONG;
}
! /* }}} */
+ /* {{{ proto bool sybase_free_result(int result)
+ */
void php3_sybase_free_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index;
***************
*** 835,848 ****
php3_list_delete(sybase_result_index->value.lval);
RETURN_TRUE;
}
!
void php3_sybase_get_last_message(INTERNAL_FUNCTION_PARAMETERS)
{
RETURN_STRING(php3_sybase_module.server_message,1);
}
!
void php3_sybase_num_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result_index;
--- 847,864 ----
php3_list_delete(sybase_result_index->value.lval);
RETURN_TRUE;
}
+ /* }}} */
! /* {{{ proto string sybase_get_last_message(void)
! */
void php3_sybase_get_last_message(INTERNAL_FUNCTION_PARAMETERS)
{
RETURN_STRING(php3_sybase_module.server_message,1);
}
! /* }}} */
+ /* {{{ proto int sybase_num_rows(int result)
+ */
void php3_sybase_num_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result_index;
***************
*** 865,872 ****
return_value->value.lval = result->num_rows;
return_value->type = IS_LONG;
}
!
void php3_sybase_num_fields(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result_index;
--- 881,890 ----
return_value->value.lval = result->num_rows;
return_value->type = IS_LONG;
}
+ /* }}} */
! /* {{{ proto int sybase_num_fields(int result)
! */
void php3_sybase_num_fields(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result_index;
***************
*** 889,896 ****
return_value->value.lval = result->num_fields;
return_value->type = IS_LONG;
}
!
void php3_sybase_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index;
--- 907,916 ----
return_value->value.lval = result->num_fields;
return_value->type = IS_LONG;
}
! /* }}} */
+ /* {{{ proto array sybase_fetch_row(int result)
+ */
void php3_sybase_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index;
***************
*** 923,930 ****
}
result->cur_row++;
}
-
static void php3_sybase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index;
--- 943,950 ----
}
result->cur_row++;
}
+ /* }}} */
static void php3_sybase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index;
***************
*** 966,971 ****
--- 986,993 ----
}
+ /* {{{ proto object sybase_fetch_object(int result)
+ */
void php3_sybase_fetch_object(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
***************
*** 973,985 ****
return_value->type=IS_OBJECT;
}
}
!
void php3_sybase_fetch_array(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
void php3_sybase_data_seek(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index,*offset;
--- 995,1012 ----
return_value->type=IS_OBJECT;
}
}
! /* }}} */
+ /* {{{ proto array sybase_fetch_array(int result)
+ */
void php3_sybase_fetch_array(INTERNAL_FUNCTION_PARAMETERS)
{
php3_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
+ /* }}} */
+ /* {{{ proto bool sybase_data_seek(int result, int offset)
+ */
void php3_sybase_data_seek(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index,*offset;
***************
*** 1008,1014 ****
result->cur_row = offset->value.lval;
RETURN_TRUE;
}
!
static char *php3_sybase_get_field_name(int type)
{
--- 1035,1041 ----
result->cur_row = offset->value.lval;
RETURN_TRUE;
}
! /* }}} */
static char *php3_sybase_get_field_name(int type)
{
***************
*** 1056,1062 ****
}
}
!
void php3_sybase_fetch_field(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index,*offset;
--- 1083,1090 ----
}
}
! /* {{{ proto object sybase_fetch_field(int result[, int offset])
! */
void php3_sybase_fetch_field(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index,*offset;
***************
*** 1112,1118 ****
--- 1140,1149 ----
add_property_long(return_value, "numeric", result->fields[field_offset].numeric);
add_property_string(return_value, "type",
php3_sybase_get_field_name(result->fields[field_offset].type), 1);
}
+ /* }}} */
+ /* {{{ proto bool sybase_field_seek(int result, int offset)
+ */
void php3_sybase_field_seek(INTERNAL_FUNCTION_PARAMETERS)
{
pval *sybase_result_index,*offset;
***************
*** 1143,1150 ****
result->cur_field = field_offset;
RETURN_TRUE;
}
!
void php3_sybase_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *row, *field, *sybase_result_index;
--- 1174,1183 ----
result->cur_field = field_offset;
RETURN_TRUE;
}
! /* }}} */
+ /* {{{ proto string sybase_result(int result, int row, mixed field)
+ */
void php3_sybase_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *row, *field, *sybase_result_index;
***************
*** 1200,1207 ****
*return_value = result->data[row->value.lval][field_offset];
pval_copy_constructor(return_value);
}
-
void php3_info_sybase(void)
{
char maxp[16],maxl[16];
--- 1233,1240 ----
*return_value = result->data[row->value.lval][field_offset];
pval_copy_constructor(return_value);
}
+ /* }}} */
void php3_info_sybase(void)
{
char maxp[16],maxl[16];
***************
*** 1231,1238 ****
php3_sybase_module.appname,
dbversion());
}
-
void php3_sybase_min_error_severity(INTERNAL_FUNCTION_PARAMETERS)
{
pval *severity;
--- 1264,1272 ----
php3_sybase_module.appname,
dbversion());
}
+ /* {{{ proto void sybase_min_error_severity(int severity)
+ */
void php3_sybase_min_error_severity(INTERNAL_FUNCTION_PARAMETERS)
{
pval *severity;
***************
*** 1243,1250 ****
convert_to_long(severity);
php3_sybase_module.min_error_severity = severity->value.lval;
}
!
void php3_sybase_min_message_severity(INTERNAL_FUNCTION_PARAMETERS)
{
pval *severity;
--- 1277,1286 ----
convert_to_long(severity);
php3_sybase_module.min_error_severity = severity->value.lval;
}
+ /* }}} */
! /* {{{ proto void sybase_min_message_severity(int severity)
! */
void php3_sybase_min_message_severity(INTERNAL_FUNCTION_PARAMETERS)
{
pval *severity;
***************
*** 1255,1259 ****
--- 1291,1303 ----
convert_to_long(severity);
php3_sybase_module.min_message_severity = severity->value.lval;
}
+ /* }}} */
#endif
+
+ /*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net