summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Parise <jon@php.net>2001-05-15 23:28:17 +0000
committerJon Parise <jon@php.net>2001-05-15 23:28:17 +0000
commit6c5db8d2d71154286fede9f30df1ed2cdde50573 (patch)
tree6d3d80a310519e98c7b41e1f203655be2e6d8aa9
parent58f7df0ae4665209acd92609658b23cd91ede2f7 (diff)
downloadphp-git-6c5db8d2d71154286fede9f30df1ed2cdde50573.tar.gz
@ - Renamed diskfreespace() to disk_free_space() to conform to established
@ naming conventions. (jon)
-rw-r--r--ext/standard/basic_functions.c3
-rw-r--r--ext/standard/filestat.c6
-rw-r--r--ext/standard/php_filestat.h2
3 files changed, 6 insertions, 5 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 90b25dd1d3..c73a073f5a 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -505,7 +505,8 @@ function_entry basic_functions[] = {
PHP_FE(chmod, NULL)
PHP_FE(touch, NULL)
PHP_FE(clearstatcache, NULL)
- PHP_FE(diskfreespace, NULL)
+ PHP_FE(disk_free_space, NULL)
+ PHP_FALIAS(diskfreespace, disk_free_space, NULL)
/* functions from mail.c */
#ifdef HAVE_SENDMAIL
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 9d021c2e9e..54d1b0ca8b 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -124,9 +124,9 @@ PHP_RSHUTDOWN_FUNCTION(filestat)
return SUCCESS;
}
-/* {{{ proto double diskfreespace(string path)
- Get free diskspace for filesystem that path is on */
-PHP_FUNCTION(diskfreespace)
+/* {{{ proto double disk_free_space(string path)
+ Get free disk space for filesystem that path is on */
+PHP_FUNCTION(disk_free_space)
{
pval **path;
#ifdef WINDOWS
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h
index fc78fb4dfe..57e30c35b7 100644
--- a/ext/standard/php_filestat.h
+++ b/ext/standard/php_filestat.h
@@ -43,7 +43,7 @@ PHP_FUNCTION(is_link);
PHP_FUNCTION(file_exists);
PHP_NAMED_FUNCTION(php_if_stat);
PHP_NAMED_FUNCTION(php_if_lstat);
-PHP_FUNCTION(diskfreespace);
+PHP_FUNCTION(disk_free_space);
PHP_FUNCTION(chown);
PHP_FUNCTION(chgrp);
PHP_FUNCTION(chmod);