mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Renamed get_memory_usage() to memory_get_usage() (per Andi's advice)
This doesn't break any BC.
This commit is contained in:
parent
7002a39f97
commit
309ef518fc
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user