CVS update: php3/functions
| From: | jah | Date: | Mon, 04 Jan 1999 07:38:16 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3240@lists.php.net to get a copy of this message | ||
Date: Monday January 4, 1999 @ 2:38
Author: jah
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv29311/functions
Modified Files:
COM.c datetime.c file.c filestat.c head.c ifx.ec pgsql.c
string.c var.c
Log Message:
Added prototypes and fixed a few typos in those already existing.
Index: php3/functions/COM.c
diff -c php3/functions/COM.c:1.4 php3/functions/COM.c:1.5
*** php3/functions/COM.c:1.4 Fri Jan 1 12:59:06 1999
--- php3/functions/COM.c Mon Jan 4 02:38:14 1999
***************
*** 29,35 ****
/* !!!! experimental, use at your own risk! !!!!
! $Id: COM.c,v 1.4 1999/01/01 17:59:06 zeev Exp $ */
#if WIN32|WINNT
--- 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
***************
*** 45,54 ****
function_entry COM_functions[] = {
{"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}
};
--- 45,56 ----
function_entry COM_functions[] = {
{"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}
};
***************
*** 139,144 ****
--- 141,148 ----
}
+ /* {{{ proto int com_load(string module_name)
+ */
void php3_COM_load(INTERNAL_FUNCTION_PARAMETERS)
{
pval *module_name;
***************
*** 195,201 ****
RETURN_LONG(php3_list_insert(i_dispatch,le_idispatch));
}
!
--- 199,205 ----
RETURN_LONG(php3_list_insert(i_dispatch,le_idispatch));
}
! /* }}} */
***************
*** 225,236 ****
pval_arg->value.dval = var_arg->dblVal;
pval_arg->type = IS_DOUBLE;
break;
! case VT_BOOL:
if (var_arg->boolVal & 0xFFFF) {
pval_arg->value.lval = 1;
! } else {
pval_arg->value.lval = 0;
! }
pval_arg->type = IS_LONG;
break;
case VT_BSTR:
--- 229,240 ----
pval_arg->value.dval = var_arg->dblVal;
pval_arg->type = IS_DOUBLE;
break;
! case VT_BOOL:
if (var_arg->boolVal & 0xFFFF) {
pval_arg->value.lval = 1;
! } else {
pval_arg->value.lval = 0;
! }
pval_arg->type = IS_LONG;
break;
case VT_BSTR:
***************
*** 254,262 ****
case IS_ARRAY:
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;
case IS_DOUBLE:
var_arg->vt = VT_R8; // assuming 64-bit double precision
--- 258,267 ----
case IS_ARRAY:
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;
case IS_DOUBLE:
var_arg->vt = VT_R8; // assuming 64-bit double precision
***************
*** 272,277 ****
--- 277,284 ----
}
+ /* {{{ proto mixed com_invoke(int module, string handler_name[, mixed arg[, ...]])
+ */
void php3_COM_invoke(INTERNAL_FUNCTION_PARAMETERS)
{
pval **arguments;
***************
*** 354,361 ****
--- 361,375 ----
efree(variant_args);
efree(funcname);
}
+ /* }}} */
+
+ /* {{{ proto mixed com_get(int module, string property_name)
+ A dummy so we get proto for com_get which is the same as com_propget */
+ /* }}} */
+ /* {{{ proto mixed com_propget(int module, string property_name)
+ */
void php3_COM_propget(INTERNAL_FUNCTION_PARAMETERS)
{
pval *arg_idispatch, *arg_property;
***************
*** 413,420 ****
--- 427,445 ----
efree(funcname);
}
+ /* }}} */
+ /* {{{ proto bool com_set(int module, string property_name, mixed value)
+ Dummy */
+ /* }}} */
+
+ /* {{{ proto bool com_propset(int module, string property_name, mixed value)
+ Dummy */
+ /* }}} */
+
+ /* {{{ proto bool com_propput(int module, string property_name, mixed value)
+ */
void php3_COM_propput(INTERNAL_FUNCTION_PARAMETERS)
{
pval *arg_idispatch, *arg_property, *arg_new_value;
***************
*** 471,479 ****
efree(funcname);
RETURN_FALSE;
}
- efree(funcname);
RETURN_TRUE;
}
#endif
--- 496,506 ----
efree(funcname);
RETURN_FALSE;
}
+
+ efree(funcname);
RETURN_TRUE;
}
+ /* }}} */
#endif
Index: php3/functions/datetime.c
diff -c php3/functions/datetime.c:1.45 php3/functions/datetime.c:1.46
*** php3/functions/datetime.c:1.45 Fri Jan 1 12:59:07 1999
--- php3/functions/datetime.c Mon Jan 4 02:38:14 1999
***************
*** 30,36 ****
*/
! /* $Id: datetime.c,v 1.45 1999/01/01 17:59:07 zeev Exp $ */
#ifdef THREAD_SAFE
--- 30,36 ----
*/
! /* $Id: datetime.c,v 1.46 1999/01/04 07:38:14 jah Exp $ */
#ifdef THREAD_SAFE
***************
*** 76,86 ****
--- 76,89 ----
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
};
+ /* {{{ proto int time(void)
+ */
void php3_time(INTERNAL_FUNCTION_PARAMETERS)
{
return_value->value.lval = (long) time(NULL);
return_value->type = IS_LONG;
}
+ /* }}} */
void _php3_mktime(INTERNAL_FUNCTION_PARAMETERS, int gm)
{
***************
*** 136,150 ****
--- 139,159 ----
return_value->type = IS_LONG;
}
+ /* {{{ proto int mktime(int hour, int min, int sec, int mon, int mday, int year)
+ */
void php3_mktime(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_mktime(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
+ /* }}} */
+ /* {{{ proto int gmmktime(int hour, int min, int sec, int mon, int mday, int year)
+ */
void php3_gmmktime(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_mktime(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
+ /* }}} */
static void
_php3_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
***************
*** 338,353 ****
--- 347,370 ----
return_value->type = IS_STRING;
}
+ /* {{{ proto string date(string format[, int timestamp])
+ */
void php3_date(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_date(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
+ /* }}} */
+ /* {{{ proto string gmdate(string format[, int timestamp])
+ */
void php3_gmdate(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_date(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
+ /* }}} */
+ /* {{{ proto array getdate([int timestamp])
+ */
void php3_getdate(INTERNAL_FUNCTION_PARAMETERS)
{
pval *timestamp_arg;
***************
*** 384,389 ****
--- 401,407 ----
add_assoc_string(return_value, "month", mon_full_names[ta->tm_mon], 1);
add_index_long(return_value, 0, timestamp);
}
+ /* }}} */
/* Return date string in standard format for http headers */
char *php3_std_date(time_t t)
***************
*** 418,423 ****
--- 436,443 ----
* returns True(1) if it is valid date
*
*/
+ /* {{{ proto bool checkdate(int month, int day, int year)
+ */
#define isleap(year) (((year%4) == 0 && (year%100)!=0) || (year%400)==0)
void php3_checkdate(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 450,459 ****
--- 470,482 ----
}
RETURN_TRUE; /* True : This month,day,year arguments are valid */
}
+ /* }}} */
#if HAVE_STRFTIME
+ /* {{{ proto string strftime(string format[, int timestamp])
+ */
void php3_strftime(INTERNAL_FUNCTION_PARAMETERS)
{
pval *format_arg, *timestamp_arg;
***************
*** 498,503 ****
--- 521,527 ----
return_value->value.str.len = real_len;
return_value->type = IS_STRING;
}
+ /* }}} */
#endif
/*
* Local variables:
Index: php3/functions/file.c
diff -c php3/functions/file.c:1.192 php3/functions/file.c:1.193
*** php3/functions/file.c:1.192 Fri Jan 1 12:59:09 1999
--- php3/functions/file.c Mon Jan 4 02:38:14 1999
***************
*** 26,32 ****
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: file.c,v 1.192 1999/01/01 17:59:09 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 26,32 ----
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: file.c,v 1.193 1999/01/04 07:38:14 jah Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 961,966 ****
--- 961,970 ----
RETVAL_STRING(rbuf,1);
efree(rbuf);
}
+ /* }}} */
+
+ /* {{{ proto int fputs(int fp, string str [, int length])
+ A dummy so we get proto for fputs which is the same as fwrite... */
/* }}} */
/* {{{ proto int fwrite(int fp, string str [, int length])
Index: php3/functions/filestat.c
diff -c php3/functions/filestat.c:1.79 php3/functions/filestat.c:1.80
*** php3/functions/filestat.c:1.79 Fri Jan 1 12:59:09 1999
--- php3/functions/filestat.c Mon Jan 4 02:38:14 1999
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: filestat.c,v 1.79 1999/01/01 17:59:09 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: filestat.c,v 1.80 1999/01/04 07:38:14 jah Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 115,120 ****
--- 115,122 ----
return SUCCESS;
}
+ /* {{{ proto bool chgrp(string filename, mixed group)
+ */
void php3_chgrp(INTERNAL_FUNCTION_PARAMETERS)
{
#ifndef WINDOWS
***************
*** 161,167 ****
--- 163,172 ----
#endif
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto bool chown(string filename, mixed user)
+ */
void php3_chown(INTERNAL_FUNCTION_PARAMETERS)
{
#ifndef WINDOWS
***************
*** 205,211 ****
--- 210,219 ----
#endif
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto bool chmod(string filename, int mode)
+ */
void php3_chmod(INTERNAL_FUNCTION_PARAMETERS) {
pval *filename, *mode;
int ret;
***************
*** 231,237 ****
--- 239,248 ----
}
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto bool touch(string filename[, int time])
+ */
void php3_touch(INTERNAL_FUNCTION_PARAMETERS) {
#if HAVE_UTIME
pval *filename, *filetime;
***************
*** 296,302 ****
--- 307,316 ----
}
#endif
}
+ /* }}} */
+ /* {{{ proto void clearstatcache(void)
+ */
void php3_clearstatcache(INTERNAL_FUNCTION_PARAMETERS) {
TLS_VARS;
***************
*** 305,310 ****
--- 319,325 ----
GLOBAL(CurrentStatFile) = NULL;
}
}
+ /* }}} */
static void _php3_stat(const char *filename, int type, pval *return_value)
{
***************
*** 450,473 ****
--- 465,559 ----
_php3_stat(filename->value.str.val, funcnum, return_value); \
}
+ /* {{{ proto int fileperms(string filename)
+ */
FileFunction(php3_fileperms,0)
+ /* }}} */
+
+ /* {{{ proto int fileinode(string filename)
+ */
FileFunction(php3_fileinode,1)
+ /* }}} */
+
+ /* {{{ proto int filesize(string filename)
+ */
FileFunction(php3_filesize, 2)
+ /* }}} */
+
+ /* {{{ proto int fileowner(string filename)
+ */
FileFunction(php3_fileowner,3)
+ /* }}} */
+
+ /* {{{ proto int filegroup(string filename)
+ */
FileFunction(php3_filegroup,4)
+ /* }}} */
+
+ /* {{{ proto int fileatime(string filename)
+ */
FileFunction(php3_fileatime,5)
+ /* }}} */
+
+ /* {{{ proto int filemtime(string filename)
+ */
FileFunction(php3_filemtime,6)
+ /* }}} */
+
+ /* {{{ proto int filectime(string filename)
+ */
FileFunction(php3_filectime,7)
+ /* }}} */
+
+ /* {{{ proto string filetype(string filename)
+ */
FileFunction(php3_filetype, 8)
+ /* }}} */
+
+ /* {{{ proto int is_writeable(string filename)
+ */
FileFunction(php3_iswritable, 9)
+ /* }}} */
+
+ /* {{{ proto int is_readable(string filename)
+ */
FileFunction(php3_isreadable,10)
+ /* }}} */
+
+ /* {{{ proto int is_executable(string filename)
+ */
FileFunction(php3_isexec,11)
+ /* }}} */
+
+ /* {{{ proto int is_file(string filename)
+ */
FileFunction(php3_isfile,12)
+ /* }}} */
+
+ /* {{{ proto int is_dir(string filename)
+ */
FileFunction(php3_isdir,13)
+ /* }}} */
+
+ /* {{{ proto int is_link(string filename)
+ */
FileFunction(php3_islink,14)
+ /* }}} */
+
+ /* {{{ proto bool file_exists(string filename)
+ */
FileFunction(php3_fileexists,15)
+ /* }}} */
+
+ /* {{{ proto array lstat(string filename)
+ */
FileFunction(php3_lstat,16)
+ /* }}} */
+
+ /* {{{ proto array stat(string filename)
+ */
FileFunction(php3_stat,17)
+ /* }}} */
function_entry php3_filestat_functions[] = {
{"fileatime", php3_fileatime, NULL},
Index: php3/functions/head.c
diff -c php3/functions/head.c:1.110 php3/functions/head.c:1.111
*** php3/functions/head.c:1.110 Fri Jan 1 12:59:10 1999
--- php3/functions/head.c Mon Jan 4 02:38:14 1999
***************
*** 26,32 ****
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: head.c,v 1.110 1999/01/01 17:59:10 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 26,32 ----
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: head.c,v 1.111 1999/01/04 07:38:14 jah Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 84,89 ****
--- 84,91 ----
/* Implementation of the language Header() function */
+ /* {{{ proto void header(string header)
+ */
void php3_Header(INTERNAL_FUNCTION_PARAMETERS)
{
char *r;
***************
*** 216,221 ****
--- 218,224 ----
}
#endif
}
+ /* }}} */
/*
* php3_header() flushes the header info built up using calls to
***************
*** 420,425 ****
--- 423,430 ----
}
/* php3_SetCookie(name,value,expires,path,domain,secure) */
+ /* {{{ proto void setcookie(string name[, string value[, int expires[, string path[, string
domain[, string secure]]]]])
+ */
void php3_SetCookie(INTERNAL_FUNCTION_PARAMETERS)
{
#if !APACHE
***************
*** 548,553 ****
--- 553,559 ----
efree(tempstr);
#endif
}
+ /* }}} */
int php3_headers_unsent(void)
Index: php3/functions/ifx.ec
diff -c php3/functions/ifx.ec:1.37 php3/functions/ifx.ec:1.38
*** php3/functions/ifx.ec:1.37 Mon Dec 28 04:34:54 1998
--- php3/functions/ifx.ec Mon Jan 4 02:38:14 1999
***************
*** 30,36 ****
+----------------------------------------------------------------------+
*/
! /* $Id: ifx.ec,v 1.37 1998/12/28 09:34:54 sas Exp $ */
/* -------------------------------------------------------------------
* if you want a function reference : "grep '^\*\*' ifx.ec" will give
--- 30,36 ----
+----------------------------------------------------------------------+
*/
! /* $Id: ifx.ec,v 1.38 1999/01/04 07:38:14 jah Exp $ */
/* -------------------------------------------------------------------
* if you want a function reference : "grep '^\*\*' ifx.ec" will give
***************
*** 556,563 ****
** ----------------------------------------------------------------------
*/
- /* {{{ 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)
{
--- 556,561 ----
***************
*** 809,826 ****
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)
{
--- 807,829 ----
efree(hashed_details);
Informix_GLOBAL(php3_ifx_module).default_link=return_value->value.lval;
}
+ /* {{{ proto int ifx_connect([string database[, string userid[, string password]]])
+ connects to database using userid/password, returns connection id */
void php3_ifx_connect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
}
+ /* }}} */
+ /* {{{ proto int ifx_pconnect([string database[, string userid[, string password]]])
+ connects to database using userid/password, returns connection id */
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)
{
***************
*** 1907,1913 ****
** ----------------------------------------------------------------------
*/
! /* {{{ 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)
{
--- 1910,1916 ----
** ----------------------------------------------------------------------
*/
! /* {{{ proto 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)
{
***************
*** 3671,3677 ****
** ----------------------------------------------------------------------
*/
! /* {{{ 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;
--- 3674,3680 ----
** ----------------------------------------------------------------------
*/
! /* {{{ proto int ifx_update_blob(int bid, string content)
updates the content of the blob-object */
void php3_ifx_update_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pparam;
Index: php3/functions/pgsql.c
diff -c php3/functions/pgsql.c:1.80 php3/functions/pgsql.c:1.81
*** php3/functions/pgsql.c:1.80 Fri Jan 1 12:59:15 1999
--- php3/functions/pgsql.c Mon Jan 4 02:38:15 1999
***************
*** 28,34 ****
+----------------------------------------------------------------------+
*/
! /* $Id: pgsql.c,v 1.80 1999/01/01 17:59:15 zeev Exp $ */
#include <stdlib.h>
--- 28,34 ----
+----------------------------------------------------------------------+
*/
! /* $Id: pgsql.c,v 1.81 1999/01/04 07:38:15 jah Exp $ */
#include <stdlib.h>
***************
*** 870,876 ****
}
/* }}} */
! /* {{{ proto array pg_fetchrow(int result, int row)
Get a row as an enumerated array */
void php3_pgsql_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
{
--- 870,876 ----
}
/* }}} */
! /* {{{ proto array pg_fetch_row(int result, int row)
Get a row as an enumerated array */
void php3_pgsql_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
{
Index: php3/functions/string.c
diff -c php3/functions/string.c:1.161 php3/functions/string.c:1.162
*** php3/functions/string.c:1.161 Sun Jan 3 22:42:57 1999
--- php3/functions/string.c Mon Jan 4 02:38:15 1999
***************
*** 30,36 ****
*/
! /* $Id: string.c,v 1.161 1999/01/04 03:42:57 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 30,36 ----
*/
! /* $Id: string.c,v 1.162 1999/01/04 07:38:15 jah Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 119,124 ****
--- 119,128 ----
}
/* }}} */
+ /* {{{ proto string rtrim(string str)
+ Dummy */
+ /* }}} */
+
/* {{{ proto string chop(string str)
Remove trailing whitespace */
void php3_chop(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 538,544 ****
return NULL;
}
! /* {{{ proto string strstr(string haystack, string needle)
Find first occurrence of a string within another, case insensitive */
void php3_stristr(INTERNAL_FUNCTION_PARAMETERS)
{
--- 542,548 ----
return NULL;
}
! /* {{{ proto string stristr(string haystack, string needle)
Find first occurrence of a string within another, case insensitive */
void php3_stristr(INTERNAL_FUNCTION_PARAMETERS)
{
***************
*** 567,572 ****
--- 571,580 ----
}
/* }}} */
+ /* {{{ proto string strchr(string haystack, string needle)
+ Dummy */
+ /* }}} */
+
/* {{{ proto string strstr(string haystack, string needle)
Find first occurrence of a string within another */
void php3_strstr(INTERNAL_FUNCTION_PARAMETERS)
***************
*** 931,937 ****
}
/* }}} */
! /* {{{ proto string(string str)
Make a string's first character uppercase */
void php3_ucfirst(INTERNAL_FUNCTION_PARAMETERS)
{
--- 939,945 ----
}
/* }}} */
! /* {{{ proto string ucfirst(string str)
Make a string's first character uppercase */
void php3_ucfirst(INTERNAL_FUNCTION_PARAMETERS)
{
Index: php3/functions/var.c
diff -c php3/functions/var.c:1.9 php3/functions/var.c:1.10
*** php3/functions/var.c:1.9 Fri Jan 1 12:59:20 1999
--- php3/functions/var.c Mon Jan 4 02:38:15 1999
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: var.c,v 1.9 1999/01/01 17:59:20 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: var.c,v 1.10 1999/01/04 07:38:15 jah Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 128,134 ****
}
}
!
PHP_FUNCTION(var_dump)
{
pval *struc;
--- 128,135 ----
}
}
! /* {{{ proto void var_dump(mixed var)
! */
PHP_FUNCTION(var_dump)
{
pval *struc;
***************
*** 138,144 ****
}
php3api_var_dump(struc, 1);
}
!
#define STR_CAT(P,S,I) {\
--- 139,145 ----
}
php3api_var_dump(struc, 1);
}
! /* }}} */
#define STR_CAT(P,S,I) {\
***************
*** 355,360 ****
--- 356,363 ----
}
+ /* {{{ proto string serialize(mixed variable)
+ */
PHP_FUNCTION(serialize)
{
pval *struc;
***************
*** 367,374 ****
--- 370,380 ----
return_value->value.str.len = 0;
php3api_var_serialize(return_value, struc);
}
+ /* }}} */
+ /* {{{ proto mixed unserialize(string variable_representation)
+ */
PHP_FUNCTION(unserialize)
{
pval *buf;
***************
*** 385,390 ****
--- 391,397 ----
RETURN_FALSE;
}
}
+ /* }}} */
/*
* Local variables:
--
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