diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/basic_functions.c | 6 | ||||
| -rw-r--r-- | ext/standard/var.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index d61cca8c5a..45f7c8bcbc 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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 /* }}} */ diff --git a/ext/standard/var.c b/ext/standard/var.c index bfc61a0ea4..1292d6b536 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -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; |
