diff options
-rw-r--r-- | ext/standard/basic_functions.c | 3 | ||||
-rw-r--r-- | ext/standard/filestat.c | 6 | ||||
-rw-r--r-- | ext/standard/php_filestat.h | 2 |
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); |