mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFH: Update protos & arginfo for memory_get_usage() & memory_get_peak_usage()
This commit is contained in:
parent
9cd119859d
commit
d5ec319367
@ -3054,11 +3054,13 @@ ZEND_END_ARG_INFO()
|
||||
|
||||
#if MEMORY_LIMIT
|
||||
static
|
||||
ZEND_BEGIN_ARG_INFO(arginfo_memory_get_usage, 0)
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_memory_get_usage, 0, 0, 0)
|
||||
ZEND_ARG_INFO(0, real_usage)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
static
|
||||
ZEND_BEGIN_ARG_INFO(arginfo_memory_get_peak_usage, 0)
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_memory_get_peak_usage, 0, 0, 0)
|
||||
ZEND_ARG_INFO(0, real_usage)
|
||||
ZEND_END_ARG_INFO()
|
||||
#endif
|
||||
/* }}} */
|
||||
|
@ -909,7 +909,7 @@ PHP_FUNCTION(unserialize)
|
||||
/* }}} */
|
||||
|
||||
#if MEMORY_LIMIT
|
||||
/* {{{ proto int memory_get_usage()
|
||||
/* {{{ proto int memory_get_usage([real_usage])
|
||||
Returns the allocated by PHP memory */
|
||||
PHP_FUNCTION(memory_get_usage) {
|
||||
zend_bool real_usage = 0;
|
||||
@ -921,7 +921,7 @@ PHP_FUNCTION(memory_get_usage) {
|
||||
RETURN_LONG(zend_memory_usage(real_usage TSRMLS_CC));
|
||||
}
|
||||
/* }}} */
|
||||
/* {{{ proto int memory_get_peak_usage()
|
||||
/* {{{ proto int memory_get_peak_usage([real_usage])
|
||||
Returns the peak allocated by PHP memory */
|
||||
PHP_FUNCTION(memory_get_peak_usage) {
|
||||
zend_bool real_usage = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user