summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-05-23 23:13:02 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-05-23 23:13:02 +0000
commitdf4547a3df3768f51e96226240c20df17102dff3 (patch)
tree9084fad9d9d0133e07e5ee55fc023c700039f5df /ext/standard
parent0fa7618f7c34c4db7cd8ff304d27962b54b59124 (diff)
downloadphp-git-df4547a3df3768f51e96226240c20df17102dff3.tar.gz
another bunch of proto fixes
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/basic_functions.c4
-rw-r--r--ext/standard/exec.c7
-rw-r--r--ext/standard/file.c2
-rw-r--r--ext/standard/filestat.c5
-rw-r--r--ext/standard/metaphone.c4
-rw-r--r--ext/standard/output.c2
6 files changed, 15 insertions, 9 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 8180d0e3c7..895ebddf7f 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -294,7 +294,7 @@ function_entry basic_functions[] = {
PHP_FE(register_shutdown_function, NULL)
PHP_FE(highlight_file, NULL)
- PHP_NAMED_FE(show_source, PHP_FN(highlight_file), NULL)
+ PHP_FALIAS(show_source, highlight_file , NULL)
PHP_FE(highlight_string, NULL)
PHP_FE(ini_get, NULL)
@@ -1967,7 +1967,7 @@ PHP_FUNCTION(extension_loaded)
/* }}} */
-/* proto array get_extension_funcs(string extension_name)
+/* {{{ proto array get_extension_funcs(string extension_name)
Returns an array with the names of functions belonging to the named extension */
PHP_FUNCTION(get_extension_funcs)
{
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 86fd53ab5b..2b581d813a 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -324,7 +324,7 @@ char * php_escape_shell_cmd(char *str) {
return cmd;
}
-/* {{{ proto escapeshellcmd(string command)
+/* {{{ proto string escapeshellcmd(string command)
Escape shell metacharacters */
PHP_FUNCTION(escapeshellcmd)
{
@@ -344,7 +344,8 @@ PHP_FUNCTION(escapeshellcmd)
}
/* }}} */
-
+/* {{{ proto string shell_exec(strng cmd)
+ What excatly is this variant for ??? */
PHP_FUNCTION(shell_exec)
{
FILE *in;
@@ -387,7 +388,7 @@ PHP_FUNCTION(shell_exec)
return_value->value.str.len = total_readbytes;
return_value->type = IS_STRING;
}
-
+/* }}} */
/*
* Local variables:
diff --git a/ext/standard/file.c b/ext/standard/file.c
index d129f6b892..6ab56ed81d 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -776,7 +776,7 @@ PHP_FUNCTION(feof)
/* }}} */
-/* {{{ proto int socket_set_blocking(int socket descriptor, int mode)
+/* {{{ proto int set_socket_blocking(int socket descriptor, int mode)
Set blocking/non-blocking mode on a socket */
PHPAPI int php_set_sock_blocking(int socketd, int block)
{
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 3ced291cf0..9e3bad8b3a 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -122,8 +122,10 @@ PHP_RSHUTDOWN_FUNCTION(filestat)
efree (BG(CurrentStatFile));
}
return SUCCESS;
-}
+}
+/* {{{ proto double diskfreespace(string path)
+ Get free diskspace for filesystem that path is on */
PHP_FUNCTION(diskfreespace)
{
pval **path;
@@ -220,6 +222,7 @@ PHP_FUNCTION(diskfreespace)
RETURN_DOUBLE(bytesfree);
}
+/* }}} */
/* {{{ proto bool chown(string filename, mixed user)
Change file owner */
diff --git a/ext/standard/metaphone.c b/ext/standard/metaphone.c
index 891feef574..fe9eae97fc 100644
--- a/ext/standard/metaphone.c
+++ b/ext/standard/metaphone.c
@@ -26,7 +26,8 @@ static int metaphone(char *word, int max_phonemes, char **phoned_word, int tradi
PHP_FUNCTION(metaphone);
-/* metaphone -- Breaks english phrases down into their phonemes. */
+/* {{{ proto string metaphone(string text, int phones)
+ Break english phrases down into their phonemes */
PHP_FUNCTION(metaphone)
{
pval **pstr, **pphones;
@@ -51,6 +52,7 @@ PHP_FUNCTION(metaphone)
RETURN_FALSE;
}
}
+/* }}} */
/*
this is now the original code by Michael G Schwern:
diff --git a/ext/standard/output.c b/ext/standard/output.c
index f778ca33bc..d489f42cc2 100644
--- a/ext/standard/output.c
+++ b/ext/standard/output.c
@@ -364,7 +364,7 @@ PHP_FUNCTION(ob_end_clean)
/* }}} */
-/* proto string ob_get_contents(void)
+/* {{{ proto string ob_get_contents(void)
Return the contents of the output buffer */
PHP_FUNCTION(ob_get_contents)
{