]> granicus.if.org Git - php/commitdiff
Renamed get_memory_usage() to memory_get_usage() (per Andi's advice)
authorAndrey Hristov <andrey@php.net>
Sat, 18 Jan 2003 15:03:01 +0000 (15:03 +0000)
committerAndrey Hristov <andrey@php.net>
Sat, 18 Jan 2003 15:03:01 +0000 (15:03 +0000)
This doesn't break any BC.

ext/standard/basic_functions.c
ext/standard/php_var.h
ext/standard/var.c

index 949f906fed63ba5f9a600de374ad7a8954efb5db..ed882249f8c6b1cf3676c54bf8b244d73fb28f43 100644 (file)
@@ -548,7 +548,7 @@ function_entry basic_functions[] = {
        PHP_FE(debug_zval_dump,                                                                                                         NULL)
        PHP_FE(print_r,                                                                                                                 NULL)
 #if MEMORY_LIMIT 
-       PHP_FE(get_memory_usage,                                                                                                NULL)
+       PHP_FE(memory_get_usage,                                                                                                NULL)
 #endif
 
        PHP_FE(register_shutdown_function,                                                                              NULL)
index f399a236bfe268da46827924fb94cf230d58c850..3ae0bb200f4cb11692849ac0edd7b6602df762b8 100644 (file)
@@ -29,7 +29,7 @@ PHP_FUNCTION(debug_zval_dump);
 PHP_FUNCTION(serialize);
 PHP_FUNCTION(unserialize);
 #if MEMORY_LIMIT 
-PHP_FUNCTION(get_memory_usage);
+PHP_FUNCTION(memory_get_usage);
 #endif
 
 void php_var_dump(zval **struc, int level TSRMLS_DC);
index e68a5a54005f0e94b6ec8e17d50984cf273ff905..12f9a0e3f203a0c42d29a2a4c1e6cea7c3455f23 100644 (file)
@@ -678,9 +678,9 @@ PHP_FUNCTION(unserialize)
 /* }}} */
 
 #if MEMORY_LIMIT
-/* {{{ proto int get_memory_usage()
+/* {{{ proto int memory_get_usage()
     Returns the allocated by PHP memory */
-PHP_FUNCTION(get_memory_usage) {
+PHP_FUNCTION(memory_get_usage) {
        RETURN_LONG(AG(allocated_memory));
 }
 /* }}} */