CVS update: php3/functions
| From: | rasmus | Date: | Fri, 06 Nov 1998 23:40:55 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2266@lists.php.net to get a copy of this message | ||
Date: Friday November 6, 1998 @ 18:40
Author: rasmus
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv10674/functions
Modified Files:
info.c link.c mail.c
Log Message:
More prototype doc comments and a doc fix
Index: php3/functions/info.c
diff -c php3/functions/info.c:1.65 php3/functions/info.c:1.66
*** php3/functions/info.c:1.65 Sun Sep 20 18:43:47 1998
--- php3/functions/info.c Fri Nov 6 18:40:54 1998
***************
*** 384,404 ****
}
void php3_info(INTERNAL_FUNCTION_PARAMETERS)
{
TLS_VARS;
_php3_info();
RETURN_TRUE;
! }
!
void php3_version(INTERNAL_FUNCTION_PARAMETERS)
{
TLS_VARS;
RETURN_STRING(PHP_VERSION,1);
! }
/*
* Local variables:
--- 384,407 ----
}
+ /* {{{ proto void phpinfo(void)
+ Output a page of useful information about PHP and the current request */
void php3_info(INTERNAL_FUNCTION_PARAMETERS)
{
TLS_VARS;
_php3_info();
RETURN_TRUE;
! } /* }}} */
! /* {{{ proto string phpversion(void)
! Return the current PHP version */
void php3_version(INTERNAL_FUNCTION_PARAMETERS)
{
TLS_VARS;
RETURN_STRING(PHP_VERSION,1);
! } /* }}} */
/*
* Local variables:
Index: php3/functions/link.c
diff -c php3/functions/link.c:1.30 php3/functions/link.c:1.31
*** php3/functions/link.c:1.30 Sat Sep 19 16:17:18 1998
--- php3/functions/link.c Fri Nov 6 18:40:55 1998
***************
*** 28,34 ****
+----------------------------------------------------------------------+
*/
! /* $Id: link.c,v 1.30 1998/09/19 20:17:18 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 28,34 ----
+----------------------------------------------------------------------+
*/
! /* $Id: link.c,v 1.31 1998/11/06 23:40:55 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 61,66 ****
--- 61,68 ----
#include "safe_mode.h"
#include "php3_link.h"
+ /* {{{ proto string readlink(string filename)
+ Return the target of a symbolic link */
void php3_readlink(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_SYMLINK
***************
*** 82,89 ****
buff[ret] = '\0';
RETURN_STRING(buff,1);
#endif
! }
void php3_linkinfo(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_SYMLINK
--- 84,93 ----
buff[ret] = '\0';
RETURN_STRING(buff,1);
#endif
! } /* }}} */
+ /* {{{ proto int linkinfo(string filename)
+ Returns the st_dev field of the UNIX C stat structure describing the link */
void php3_linkinfo(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_SYMLINK
***************
*** 103,110 ****
}
RETURN_LONG((long) sb.st_dev);
#endif
! }
void php3_symlink(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_SYMLINK
--- 107,116 ----
}
RETURN_LONG((long) sb.st_dev);
#endif
! } /* }}} */
+ /* {{{ proto int symlink(string target, string link)
+ Create a symbolic link */
void php3_symlink(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_SYMLINK
***************
*** 128,135 ****
}
RETURN_TRUE;
#endif
! }
void php3_link(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_LINK
--- 134,143 ----
}
RETURN_TRUE;
#endif
! } /* }}} */
+ /* {{{ proto int link(string target, string link)
+ Create a hard link */
void php3_link(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_LINK
***************
*** 153,160 ****
}
RETURN_TRUE;
#endif
! }
void php3_unlink(INTERNAL_FUNCTION_PARAMETERS)
{
pval *filename;
--- 161,170 ----
}
RETURN_TRUE;
#endif
! } /* }}} */
+ /* {{{ proto int unlink(string filename)
+ Delete a file */
void php3_unlink(INTERNAL_FUNCTION_PARAMETERS)
{
pval *filename;
***************
*** 176,182 ****
RETURN_FALSE;
}
RETURN_TRUE;
! }
function_entry link_functions[] = {
{"readlink", php3_readlink, NULL},
--- 186,192 ----
RETURN_FALSE;
}
RETURN_TRUE;
! } /* }}} */
function_entry link_functions[] = {
{"readlink", php3_readlink, NULL},
Index: php3/functions/mail.c
diff -c php3/functions/mail.c:1.56 php3/functions/mail.c:1.57
*** php3/functions/mail.c:1.56 Mon Jul 27 11:55:52 1998
--- php3/functions/mail.c Fri Nov 6 18:40:55 1998
***************
*** 28,34 ****
+----------------------------------------------------------------------+
*/
! /* $Id: mail.c,v 1.56 1998/07/27 15:55:52 musone Exp $ */
#include <stdlib.h>
#include <ctype.h>
--- 28,34 ----
+----------------------------------------------------------------------+
*/
! /* $Id: mail.c,v 1.57 1998/11/06 23:40:55 rasmus Exp $ */
#include <stdlib.h>
#include <ctype.h>
***************
*** 68,73 ****
--- 68,75 ----
DLEXPORT php3_module_entry *get_module(void) { return &odbc_module_entry; }
#endif
+ /* {{{ proto int mail(string to, string subject, string message [, string additional_headers])
+ Send an email message */
void php3_mail(INTERNAL_FUNCTION_PARAMETERS)
{
pval *argv[4];
***************
*** 117,123 ****
} else {
RETURN_FALSE;
}
! }
int _php3_mail(char *to, char *subject, char *message, char *headers)
{
--- 119,125 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
int _php3_mail(char *to, char *subject, char *message, char *headers)
{
--
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