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

memory_limit跟memory_get_usage的关系

WBOY
Release: 2016-06-13 11:16:52
Original
929 people have browsed it

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


------解决方案--------------------
版主讲得很详细,受教了。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template