summaryrefslogtreecommitdiff
path: root/ext/standard/var.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-07-18 09:06:33 +0000
committerDmitry Stogov <dmitry@php.net>2006-07-18 09:06:33 +0000
commit29ed52ffa46529dc11d41a919f21b3e8ab32229e (patch)
treeabea71604780b607e44e47609fcae1cc17a4ae8b /ext/standard/var.c
parent7f9a43653c229193b2c181e20150ab108052cea7 (diff)
downloadphp-git-29ed52ffa46529dc11d41a919f21b3e8ab32229e.tar.gz
New memory manager
Diffstat (limited to 'ext/standard/var.c')
-rw-r--r--ext/standard/var.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c
index 7a81013889..eb9547f968 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -911,13 +911,14 @@ PHP_FUNCTION(unserialize)
/* {{{ proto int memory_get_usage()
Returns the allocated by PHP memory */
PHP_FUNCTION(memory_get_usage) {
- RETURN_LONG(AG(allocated_memory));
+
+ RETURN_LONG(zend_memory_usage(TSRMLS_C));
}
/* }}} */
/* {{{ proto int memory_get_peak_usage()
Returns the peak allocated by PHP memory */
PHP_FUNCTION(memory_get_peak_usage) {
- RETURN_LONG(AG(allocated_memory_peak));
+ RETURN_LONG(zend_memory_peak_usage(TSRMLS_C));
}
/* }}} */
#endif