MFH: Update protos & arginfo for memory_get_usage() & memory_get_peak_usage()

This commit is contained in:
Hannes Magnusson 2006-07-25 16:41:04 +00:00
parent 9cd119859d
commit d5ec319367
2 changed files with 6 additions and 4 deletions

View File

@ -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
/* }}} */

View File

@ -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;