Home >Backend Development >PHP Tutorial > memory_limit跟memory_get_usage的关系

memory_limit跟memory_get_usage的关系

WBOY
WBOYOriginal
2016-06-13 12:52:18805browse

memory_limit和memory_get_usage的关系
    我先在服务器上测试了下,当/etc/php.ini中memory_limit设置成16M时,memory_get_usage在页面上输出30135641,这时我就纳闷了,那个数字不就是30M么,比php.ini要大啊,怎么没报警。这两者有什么关系?望朋友们解惑!!!


------解决方案--------------------
版主讲得很详细,受教了。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn