CVS update: php3/functions
| From: | danny | Date: | Thu, 12 Nov 1998 22:09:22 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2358@lists.php.net to get a copy of this message | ||
Date: Thursday November 12, 1998 @ 17:09
Author: danny
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv23733/functions
Modified Files:
ifx.ec
Log Message:
- added {{{ proto function comments
Index: php3/functions/ifx.ec
diff -c php3/functions/ifx.ec:1.33 php3/functions/ifx.ec:1.34
*** php3/functions/ifx.ec:1.33 Sat Oct 31 14:10:29 1998
--- php3/functions/ifx.ec Thu Nov 12 17:09:22 1998
***************
*** 93,98 ****
--- 93,100 ----
- changes the internal structure of IFX_BLOB and IFX_SLOB into one structure. it is now prepared
for general-id-usage
- fixed a lvarchar-bug (i hate esql/c)
+ Changes 12.11.1998 (danny.heijl@cevi.be)
+ - added proto comments
*/
***************
*** 539,545 ****
}
/* ----------------------------------------------------------------------
! ** int ifx_(p)connect($database,$userid,$password)
**
** connects to $database (db@server syntax) using $userid and $password
**
--- 541,547 ----
}
/* ----------------------------------------------------------------------
! ** int ifx_(p)connect(string $database,string $userid,string $password)
**
** connects to $database (db@server syntax) using $userid and $password
**
***************
*** 547,552 ****
--- 549,556 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_(p)connect(string database,string userid,string password)
+ connects to database using userid/password, returns connection id */
static void php3_ifx_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
{
***************
*** 797,804 ****
--- 801,818 ----
}
efree(hashed_details);
Informix_GLOBAL(php3_ifx_module).default_link=return_value->value.lval;
+ } /* }}} */
+
+
+ void php3_ifx_connect(INTERNAL_FUNCTION_PARAMETERS)
+ {
+ php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
}
+ void php3_ifx_pconnect(INTERNAL_FUNCTION_PARAMETERS)
+ {
+ php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
+ }
static int php3_ifx_get_default_link(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 814,830 ****
return Informix_GLOBAL(php3_ifx_module).default_link;
}
-
- void php3_ifx_connect(INTERNAL_FUNCTION_PARAMETERS)
- {
- php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
- }
-
- void php3_ifx_pconnect(INTERNAL_FUNCTION_PARAMETERS)
- {
- php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
- }
-
/* ----------------------------------------------------------------------
** int ifx_close(int $connid)
**
--- 828,833 ----
***************
*** 833,838 ****
--- 836,843 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_close(int connid)
+ close informix connection */
void php3_ifx_close(INTERNAL_FUNCTION_PARAMETERS)
{
pval *ifx_link;
***************
*** 880,886 ****
php3_list_delete(id);
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
** int ifx_query(string $query, int $connid,
--- 885,891 ----
php3_list_delete(id);
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
** int ifx_query(string $query, int $connid,
***************
*** 905,910 ****
--- 910,917 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_query(string query, int connid, [int cursortype], [array idarray])
+ perform a query on a given connection */
void php3_ifx_query(INTERNAL_FUNCTION_PARAMETERS)
{
pval *query,*ifx_link, *cursortype, *dummy;
***************
*** 1256,1262 ****
RETURN_LONG(php3_list_insert(Ifx_Result,Informix_GLOBAL(php3_ifx_module).le_result));
! }
/* ----------------------------------------------------------------------
--- 1263,1269 ----
RETURN_LONG(php3_list_insert(Ifx_Result,Informix_GLOBAL(php3_ifx_module).le_result));
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 1277,1282 ****
--- 1284,1291 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_prepare(string query, int connid, [int cursortype], [array idarray])
+ prepare a query on a given connection */
void php3_ifx_prepare(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 1538,1544 ****
} /* if select */
RETURN_LONG(php3_list_insert(Ifx_Result,Informix_GLOBAL(php3_ifx_module).le_result));
! }
/* ----------------------------------------------------------------------
** int ifx_do(int $resultid)
--- 1547,1553 ----
} /* if select */
RETURN_LONG(php3_list_insert(Ifx_Result,Informix_GLOBAL(php3_ifx_module).le_result));
! } /* }}} */
/* ----------------------------------------------------------------------
** int ifx_do(int $resultid)
***************
*** 1553,1558 ****
--- 1562,1569 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_do(int resultid)
+ executes a previously prepared query or opens a cursor for it */
void php3_ifx_do(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
***************
*** 1703,1721 ****
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
! ** string ifx_error(int connection_id);
**
** returns the Informix error codes (SQLSTATE & SQLCODE)
**
** connection id is not checked, but remains for compatibility
** ----------------------------------------------------------------------
*/
void php3_ifx_error(INTERNAL_FUNCTION_PARAMETERS)
{
pval *ifx_link;
--- 1714,1735 ----
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
! ** string ifx_error([int connection_id]);
**
** returns the Informix error codes (SQLSTATE & SQLCODE)
**
** connection id is not checked, but remains for compatibility
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto string ifx_error();
+ returns the Informix error codes (SQLSTATE & SQLCODE) */
void php3_ifx_error(INTERNAL_FUNCTION_PARAMETERS)
{
pval *ifx_link;
***************
*** 1751,1757 ****
* }
*/
RETURN_STRING(ifx_error(0),0); /* ifx_error returns emalloced string */
! }
/* ----------------------------------------------------------------------
** string ifx_errormsg([int errorcode])
--- 1765,1771 ----
* }
*/
RETURN_STRING(ifx_error(0),0); /* ifx_error returns emalloced string */
! } /* }}} */
/* ----------------------------------------------------------------------
** string ifx_errormsg([int errorcode])
***************
*** 1763,1768 ****
--- 1777,1784 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto string ifx_errormsg([int errorcode])
+ returns the Informix errormessage associated with */
void php3_ifx_errormsg(INTERNAL_FUNCTION_PARAMETERS)
{
pval *errcode;
***************
*** 1812,1818 ****
free(ifx_errmsg);
RETURN_STRING(returnmsg,0); /* do not dup, emalloced ! */
! }
/* --------------------------------------------------------------
** int ifx_affected_rows(int $resultid)
--- 1828,1834 ----
free(ifx_errmsg);
RETURN_STRING(returnmsg,0); /* do not dup, emalloced ! */
! } /* }}} */
/* --------------------------------------------------------------
** int ifx_affected_rows(int $resultid)
***************
*** 1824,1829 ****
--- 1840,1847 ----
** ---------------------------------------------------------------
*/
+ /* {{{ proto int ifx_affected_rows(int resultid)
+ returns the number of rows affected by query identified by resultid */
void php3_ifx_affected_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
***************
*** 1858,1864 ****
return_value->value.lval = Ifx_Result->affected_rows;
return_value->type = IS_LONG;
! }
/* ----------------------------------------------------------------------
** array ifx_fetch_row(int $resultid, [mixed $position])
--- 1876,1882 ----
return_value->value.lval = Ifx_Result->affected_rows;
return_value->type = IS_LONG;
! } /* }}} */
/* ----------------------------------------------------------------------
** array ifx_fetch_row(int $resultid, [mixed $position])
***************
*** 1874,1879 ****
--- 1892,1899 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ array ifx_fetch_row(int resultid, [mixed position])
+ fetches the next row or <position> row if using a scroll cursor */
void php3_ifx_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *position;
***************
*** 2245,2251 ****
}
efree(nullstr);
! }
--- 2265,2271 ----
}
efree(nullstr);
! } /* }}} */
***************
*** 2259,2264 ****
--- 2279,2286 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_htmltbl_result(int resultid, [string htmltableoptions])
+ formats all rows of the $resultid query into a html table */
void php3_ifx_htmltbl_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *arg2;
***************
*** 2601,2607 ****
efree(nullstr);
RETURN_LONG(Ifx_Result->rowid);
! }
/* ----------------------------------------------------------------------
** array ifx_fieldtypes(int $resultid)
--- 2623,2629 ----
efree(nullstr);
RETURN_LONG(Ifx_Result->rowid);
! } /* }}} */
/* ----------------------------------------------------------------------
** array ifx_fieldtypes(int $resultid)
***************
*** 2614,2619 ****
--- 2636,2643 ----
*/
+ /* {{{ proto array ifx_fieldtypes(int resultid)
+ returns an associative array with fieldnames as key for query <resultid> */
void php3_ifx_fieldtypes(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *arg2;
***************
*** 2798,2804 ****
} /* for() */
! }
/* ----------------------------------------------------------------------
** array ifx_fieldproperties(int $resultid)
--- 2822,2828 ----
} /* for() */
! } /* }}} */
/* ----------------------------------------------------------------------
** array ifx_fieldproperties(int $resultid)
***************
*** 2814,2819 ****
--- 2838,2845 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto array ifx_fieldproperties(int resultid)
+ returns an associative for query <resultid> array with fieldnames as key */
void php3_ifx_fieldproperties(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *arg2;
***************
*** 3012,3020 ****
} /* for() */
! }
void php3_ifx_num_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
--- 3038,3056 ----
} /* for() */
! } /* }}} */
+ /* --------------------------------------------------------------
+ ** int ifx_num_rows(int $resultid)
+ **
+ ** returns the number of rows already fetched for query $resultid
+ **
+ ** ---------------------------------------------------------------
+ */
+
+ /* {{{ proto int ifx_num_rows(int resultid)
+ returns the number of rows already fetched for query identified by resultid */
void php3_ifx_num_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
***************
*** 3039,3045 ****
return_value->value.lval = Ifx_Result->rowid;
return_value->type = IS_LONG;
! }
/* ----------------------------------------------------------------------
** int ifx_num_fields(int $resultid)
--- 3075,3081 ----
return_value->value.lval = Ifx_Result->rowid;
return_value->type = IS_LONG;
! } /* }}} */
/* ----------------------------------------------------------------------
** int ifx_num_fields(int $resultid)
***************
*** 3049,3054 ****
--- 3085,3092 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_num_fields(int resultid)
+ returns the number of columns in query resultid */
void php3_ifx_num_fields(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
***************
*** 3073,3079 ****
return_value->value.lval = Ifx_Result->numcols;
return_value->type = IS_LONG;
! }
--- 3111,3117 ----
return_value->value.lval = Ifx_Result->numcols;
return_value->type = IS_LONG;
! } /* }}} */
***************
*** 3087,3092 ****
--- 3125,3132 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_free_result(int resultid)
+ releases resources for query associated with resultid */
void php3_ifx_free_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
***************
*** 3148,3154 ****
php3_list_delete(result->value.lval);
RETURN_TRUE;
! }
--- 3188,3194 ----
php3_list_delete(result->value.lval);
RETURN_TRUE;
! } /* }}} */
***************
*** 3182,3190 ****
/* ----------------------------------------------------------------------
! ** int php3_ifx_create_blob(int type, int mode, string param)
**
! ** creates an blob-object
** type: 1=TEXT, 0=BYTE
** mode: blob-object holds 0=the content in memory, 1=content in file
** param: if mode=0: pointer to the content
--- 3222,3230 ----
/* ----------------------------------------------------------------------
! ** int ifx_create_blob(int type, int mode, string param)
**
! ** creates a blob-object
** type: 1=TEXT, 0=BYTE
** mode: blob-object holds 0=the content in memory, 1=content in file
** param: if mode=0: pointer to the content
***************
*** 3192,3197 ****
--- 3232,3240 ----
** return false on error otherwise the new Blob-Object-id
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifx_create_blob(int type, int mode, string param)
+ creates a blob-object */
void php3_ifx_create_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode, *pparam,*ptype;
long id;
***************
*** 3216,3222 ****
RETURN_FALSE;
}
RETURN_LONG(id);
! }
/* ----------------------------------------------------------------------
* internal function
--- 3259,3265 ----
RETURN_FALSE;
}
RETURN_LONG(id);
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 3293,3299 ****
/* ----------------------------------------------------------------------
! ** int php3_ifx_copy_blob(int bid)
**
** duplicates the given blob-object
** bid: Id of Blobobject
--- 3336,3342 ----
/* ----------------------------------------------------------------------
! ** int ifx_copy_blob(int bid)
**
** duplicates the given blob-object
** bid: Id of Blobobject
***************
*** 3301,3306 ****
--- 3344,3352 ----
** return false on error otherwise the new Blob-Object-id
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifx_copy_blob(int bid)
+ duplicates the given blob-object */
void php3_ifx_copy_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
long newid;
***************
*** 3316,3322 ****
}
RETURN_LONG(newid);
! }
--- 3362,3368 ----
}
RETURN_LONG(newid);
! } /* }}} */
***************
*** 3395,3407 ****
/* ----------------------------------------------------------------------
! ** int php3_ifx_free_blob(int bid)
**
** deletes the blob-object
** bid: Id of Blobobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
void php3_ifx_free_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
--- 3441,3456 ----
/* ----------------------------------------------------------------------
! ** int ifx_free_blob(int bid)
**
** deletes the blob-object
** bid: Id of Blobobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifx_free_blob(int bid)
+ deletes the blob-object */
void php3_ifx_free_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
***************
*** 3416,3422 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
* internal function
--- 3465,3471 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 3499,3511 ****
}
/* ----------------------------------------------------------------------
! ** string php3_ifx_get_blob(int bid)
**
** returns the content of the blob-object
** bid: Id of Blobobject
** return the content
** ----------------------------------------------------------------------
*/
void php3_ifx_get_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
char *content;
--- 3548,3563 ----
}
/* ----------------------------------------------------------------------
! ** string ifx_get_blob(int bid)
**
** returns the content of the blob-object
** bid: Id of Blobobject
** return the content
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto string ifx_get_blob(int bid)
+ returns the content of the blob-object */
void php3_ifx_get_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
char *content;
***************
*** 3522,3528 ****
RETURN_STRING(php3_intifx_null(),1);
}
RETURN_STRINGL(content,len,1);
! }
/* ----------------------------------------------------------------------
--- 3574,3580 ----
RETURN_STRING(php3_intifx_null(),1);
}
RETURN_STRINGL(content,len,1);
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 3584,3590 ****
/* ----------------------------------------------------------------------
! ** int php3_ifx_update_blob(int bid, string content)
**
** updates the content of the blob-object
** bid: Id of Blobobject
--- 3636,3642 ----
/* ----------------------------------------------------------------------
! ** int update_blob(int bid, string content)
**
** updates the content of the blob-object
** bid: Id of Blobobject
***************
*** 3593,3598 ****
--- 3645,3652 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int update_blob(int bid, string content)
+ updates the content of the blob-object */
void php3_ifx_update_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pparam;
long ret;
***************
*** 3612,3618 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
--- 3666,3672 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 3711,3717 ****
/* ----------------------------------------------------------------------
! ** void php3_ifx_blobinfile_mode(int $mode)
**
** sets the default blob-mode for all select-queries
** mode=0: save Byte-Blobs in momory
--- 3765,3771 ----
/* ----------------------------------------------------------------------
! ** void ifx_blobinfile_mode(int $mode)
**
** sets the default blob-mode for all select-queries
** mode=0: save Byte-Blobs in momory
***************
*** 3719,3724 ****
--- 3773,3781 ----
** return nothing
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto void ifx_blobinfile_mode(int mode)
+ sets the default blob-mode for all select-queries */
void php3_ifx_blobinfile_mode(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
***************
*** 3730,3741 ****
Informix_GLOBAL(php3_ifx_module).blobinfile=pmode->value.lval;
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
! ** void php3_ifx_textasvarchar(int $mode)
**
** sets the default text-mode for all select-queries
** mode=0: select returns a blob-id
--- 3787,3798 ----
Informix_GLOBAL(php3_ifx_module).blobinfile=pmode->value.lval;
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
! ** void ifx_textasvarchar(int $mode)
**
** sets the default text-mode for all select-queries
** mode=0: select returns a blob-id
***************
*** 3743,3748 ****
--- 3800,3808 ----
** return nothing
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto void ifx_textasvarchar(int mode)
+ sets the default text-mode for all select-queries */
void php3_ifx_textasvarchar(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
***************
*** 3754,3765 ****
Informix_GLOBAL(php3_ifx_module).textasvarchar=pmode->value.lval;
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
! ** void php3_ifx_byteasvarchar(int $mode)
**
** sets the default byte-mode for all select-queries
** mode=0: select returns a blob-id
--- 3814,3825 ----
Informix_GLOBAL(php3_ifx_module).textasvarchar=pmode->value.lval;
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
! ** void ifx_byteasvarchar(int $mode)
**
** sets the default byte-mode for all select-queries
** mode=0: select returns a blob-id
***************
*** 3767,3775 ****
** return nothing
** ----------------------------------------------------------------------
*/
void php3_ifx_byteasvarchar(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
-
if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &pmode)==FAILURE) {
WRONG_PARAM_COUNT;
--- 3827,3837 ----
** return nothing
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto void ifx_byteasvarchar(int mode)
+ sets the default byte-mode for all select-queries */
void php3_ifx_byteasvarchar(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &pmode)==FAILURE) {
WRONG_PARAM_COUNT;
***************
*** 3783,3789 ****
/* ----------------------------------------------------------------------
! ** void php3_ifx_nullformat(int $mode)
**
** sets the default return value of a NULL-value un a fetch-row
** mode=0: return ""
--- 3845,3851 ----
/* ----------------------------------------------------------------------
! ** void ifx_nullformat(int $mode)
**
** sets the default return value of a NULL-value un a fetch-row
** mode=0: return ""
***************
*** 3791,3796 ****
--- 3853,3861 ----
** return nothing
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto void ifx_nullformat(int mode)
+ sets the default return value of a NULL-value un a fetch-row */
void php3_ifx_nullformat(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
***************
*** 3802,3808 ****
Informix_GLOBAL(php3_ifx_module).nullformat=pmode->value.lval;
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
--- 3867,3873 ----
Informix_GLOBAL(php3_ifx_module).nullformat=pmode->value.lval;
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 3838,3863 ****
-
-
-
-
-
-
-
-
-
-
-
-
/* ----------------------------------------------------------------------
! ** int php3_ifx_create_char(string param)
**
** creates an char-object
** param: content
** return false on error otherwise the new char-Object-id
** ----------------------------------------------------------------------
*/
void php3_ifx_create_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pparam;
long id;
--- 3903,3919 ----
/* ----------------------------------------------------------------------
! ** int ifx_create_char(string param)
**
** creates an char-object
** param: content
** return false on error otherwise the new char-Object-id
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifx_create_char(string param)
+ creates a char-object */
void php3_ifx_create_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pparam;
long id;
***************
*** 3872,3878 ****
RETURN_FALSE;
}
RETURN_LONG(id);
! }
/* ----------------------------------------------------------------------
* internal function
--- 3928,3934 ----
RETURN_FALSE;
}
RETURN_LONG(id);
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 3915,3927 ****
}
/* ----------------------------------------------------------------------
! ** string php3_ifx_get_char(int bid)
**
** returns the content of the char-object
** bid: Id of charobject
** return the content
** ----------------------------------------------------------------------
*/
void php3_ifx_get_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
char *content;
--- 3971,3986 ----
}
/* ----------------------------------------------------------------------
! ** string ifx_get_char(int bid)
**
** returns the content of the char-object
** bid: Id of charobject
** return the content
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto string ifx_get_char(int bid)
+ returns the content of the char-object */
void php3_ifx_get_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
char *content;
***************
*** 3938,3944 ****
RETURN_STRING("",1);
}
RETURN_STRINGL(content,len,1);
! }
/* ----------------------------------------------------------------------
--- 3997,4003 ----
RETURN_STRING("",1);
}
RETURN_STRINGL(content,len,1);
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 3969,3981 ****
}
/* ----------------------------------------------------------------------
! ** int php3_ifx_free_char(int bid)
**
** deletes the char-object
** bid: Id of charobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
void php3_ifx_free_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
--- 4028,4043 ----
}
/* ----------------------------------------------------------------------
! ** int ifx_free_char(int bid)
**
** deletes the char-object
** bid: Id of charobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifx_free_char(int bid)
+ deletes the char-object */
void php3_ifx_free_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
***************
*** 3990,3996 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
* internal function
--- 4052,4058 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 4024,4030 ****
}
/* ----------------------------------------------------------------------
! ** int php3_ifx_update_char(int bid, string content)
**
** updates the content of the char-object
** bid: Id of charobject
--- 4086,4092 ----
}
/* ----------------------------------------------------------------------
! ** int ifx_update_char(int bid, string content)
**
** updates the content of the char-object
** bid: Id of charobject
***************
*** 4033,4038 ****
--- 4095,4102 ----
** ----------------------------------------------------------------------
*/
+ /* {{{ proto int ifx_update_char(int bid, string content)
+ updates the content of the char-object */
void php3_ifx_update_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pparam;
long ret;
***************
*** 4052,4058 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
--- 4116,4122 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 4138,4150 ****
/* ----------------------------------------------------------------------
! ** int php3_ifxus_create_slob( int mode)
**
** creates an slob-object and opens it
** mode: 1=LO_RDONLY, 2=LO_WRONLY, 4=LO_APPEND, 8=LO_RDWR, 16=LO_BUFFER, 32=LO_NOBUFFER ->
or-mask
** return false on error otherwise the new Slob-Object-id
** ----------------------------------------------------------------------
*/
void php3_ifxus_create_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
long id;
--- 4202,4217 ----
/* ----------------------------------------------------------------------
! ** int ifxus_create_slob( int mode)
**
** creates an slob-object and opens it
** mode: 1=LO_RDONLY, 2=LO_WRONLY, 4=LO_APPEND, 8=LO_RDWR, 16=LO_BUFFER, 32=LO_NOBUFFER ->
or-mask
** return false on error otherwise the new Slob-Object-id
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_create_slob(int mode)
+ creates a slob-object and opens it */
void php3_ifxus_create_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
long id;
***************
*** 4177,4183 ****
RETURN_FALSE;
}
RETURN_LONG(id);
! }
/* ----------------------------------------------------------------------
* internal function
--- 4244,4250 ----
RETURN_FALSE;
}
RETURN_LONG(id);
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 4219,4231 ****
/* ----------------------------------------------------------------------
! ** int php3_ifxus_free_slob(int bid)
**
** deletes the slob-object
** bid: Id of Slobobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
void php3_ifxus_free_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
--- 4286,4301 ----
/* ----------------------------------------------------------------------
! ** int ifxus_free_slob(int bid)
**
** deletes the slob-object
** bid: Id of Slobobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_free_slob(int bid)
+ deletes the slob-object */
void php3_ifxus_free_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
***************
*** 4240,4246 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
* internal function
--- 4310,4316 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 4281,4293 ****
/* ----------------------------------------------------------------------
! ** int php3_ifxus_close_slob(int bid)
**
** deletes the slob-object
** bid: Id of Slobobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
void php3_ifxus_close_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
--- 4351,4366 ----
/* ----------------------------------------------------------------------
! ** int ifxus_close_slob(int bid)
**
** deletes the slob-object
** bid: Id of Slobobject
** return false on error otherwise true
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_close_slob(int bid)
+ deletes the slob-object */
void php3_ifxus_close_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
***************
*** 4302,4308 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
/* ----------------------------------------------------------------------
* internal function
--- 4375,4381 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
/* ----------------------------------------------------------------------
* internal function
***************
*** 4346,4352 ****
/* ----------------------------------------------------------------------
! ** int php3_ifxus_open_slob(long bid, int mode)
**
** opens an slob-object
** bid: existing slob-id
--- 4419,4425 ----
/* ----------------------------------------------------------------------
! ** int ifxus_open_slob(long bid, int mode)
**
** opens an slob-object
** bid: existing slob-id
***************
*** 4354,4359 ****
--- 4427,4435 ----
** return false on error otherwise the new Slob-Object-id
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_open_slob(long bid, int mode)
+ opens an slob-object */
void php3_ifxus_open_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pmode;
long id;
***************
*** 4381,4387 ****
create_mode|=LO_NOBUFFER;
RETURN_LONG(php3_intifxus_open_slob(pbid->value.lval,create_mode,list));
! }
/* ----------------------------------------------------------------------
--- 4457,4463 ----
create_mode|=LO_NOBUFFER;
RETURN_LONG(php3_intifxus_open_slob(pbid->value.lval,create_mode,list));
! } /* }}} */
/* ----------------------------------------------------------------------
***************
*** 4485,4497 ****
/* ----------------------------------------------------------------------
! ** int php3_ifxus_tell_slob(long bid)
**
** returns the current file or seek position of an open slob-object
** bid: existing slob-id
** return false on error otherwise the seek-position
** ----------------------------------------------------------------------
*/
void php3_ifxus_tell_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
long bid;
--- 4561,4576 ----
/* ----------------------------------------------------------------------
! ** int ifxus_tell_slob(long bid)
**
** returns the current file or seek position of an open slob-object
** bid: existing slob-id
** return false on error otherwise the seek-position
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_tell_slob(long bid)
+ returns the current file or seek position of an open slob-object */
void php3_ifxus_tell_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
long bid;
***************
*** 4522,4533 ****
RETURN_FALSE;
}
RETURN_LONG(lakt_seek_pos);
! }
/* ----------------------------------------------------------------------
! ** int php3_ifxus_seek_slob(long bid, int mode, long offset)
**
** sets the current file or seek position of an open slob-object
** bid: existing slob-id
--- 4601,4612 ----
RETURN_FALSE;
}
RETURN_LONG(lakt_seek_pos);
! } /* }}} */
/* ----------------------------------------------------------------------
! ** int ifxus_seek_slob(long bid, int mode, long offset)
**
** sets the current file or seek position of an open slob-object
** bid: existing slob-id
***************
*** 4536,4541 ****
--- 4615,4623 ----
** return false on error otherwise the seek-position
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_seek_slob(long bid, int mode, long offset)
+ sets the current file or seek position of an open slob-object */
void php3_ifxus_seek_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid, *pmode, *poffset;
long bid,lakt_seek_pos;
***************
*** 4577,4589 ****
RETURN_FALSE;
}
RETURN_LONG(lakt_seek_pos);
! }
/* ----------------------------------------------------------------------
! ** int php3_ifxus_read_slob(long bid, long nbytes)
**
** reads nbytes of the slob-object
** bid: existing slob-id
--- 4659,4671 ----
RETURN_FALSE;
}
RETURN_LONG(lakt_seek_pos);
! } /* }}} */
/* ----------------------------------------------------------------------
! ** int ifxus_read_slob(long bid, long nbytes)
**
** reads nbytes of the slob-object
** bid: existing slob-id
***************
*** 4591,4596 ****
--- 4673,4681 ----
** return false on error otherwise the string
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_read_slob(long bid, long nbytes)
+ reads nbytes of the slob-object */
void php3_ifxus_read_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid, *pnbytes;
long bid, nbytes;
***************
*** 4626,4636 ****
}
RETURN_STRINGL(buffer,nbytes,0);
! }
/* ----------------------------------------------------------------------
! ** int php3_ifxus_write_slob(long bid, string content)
**
** writes a string into the slob-object
** bid: existing slob-id
--- 4711,4721 ----
}
RETURN_STRINGL(buffer,nbytes,0);
! } /* }}} */
/* ----------------------------------------------------------------------
! ** int ifxus_write_slob(long bid, string content)
**
** writes a string into the slob-object
** bid: existing slob-id
***************
*** 4638,4643 ****
--- 4723,4731 ----
** return false on error otherwise bytes written
** ----------------------------------------------------------------------
*/
+
+ /* {{{ proto int ifxus_write_slob(long bid, string content)
+ writes a string into the slob-object */
void php3_ifxus_write_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid, *pcontent;
long bid, nbytes;
***************
*** 4672,4678 ****
}
RETURN_LONG(nbytes);
! }
$endif;
--- 4760,4766 ----
}
RETURN_LONG(nbytes);
! } /* }}} */
$endif;
--
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