]> granicus.if.org Git - php/commitdiff
Update protos & arginfo for memory_get_usage() & memory_get_peak_usage()
authorHannes Magnusson <bjori@php.net>
Tue, 25 Jul 2006 16:40:11 +0000 (16:40 +0000)
committerHannes Magnusson <bjori@php.net>
Tue, 25 Jul 2006 16:40:11 +0000 (16:40 +0000)
ext/standard/basic_functions.c
ext/standard/var.c

index 73bd5af7054e611405ecbe906f7833dbc2712db8..8337606d15fcd5e4516c95e50a168e6f7943592e 100644 (file)
@@ -3085,11 +3085,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
 /* }}} */
index 7141d0c883be79e7b947211c3346211f202733e3..058faea83da7748837546cd35a75264c3ef61531 100644 (file)
@@ -1149,7 +1149,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;
@@ -1161,7 +1161,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;