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

index d61cca8c5a450eba4b19e05790f3f5e6e7b59e98..45f7c8bcbcafc173a5ac7b319ebac306c46780f3 100644 (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
 /* }}} */
index bfc61a0ea494f9b404576f99ce33da46ea6cd061..1292d6b5364bb7173cd0da9dbf9b17357f3596d1 100644 (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;