问下Php对所有变量,常量,包括include加载的数据销毁机制

WBOY
Release: 2016-06-23 13:50:46
Original
1137 people have browsed it

因为PHP运行机制的问题,在程序执行完操作后会做一系列的清理工作。
变量我是知道会100%被清掉,那还有const定义的常量和在程序中用include加载的类文件数据会被清理掉吗?还是说会持久在内存,除非服务器重启才会销毁?
我看了下PHP内核的资料,也没找到有提起说这些会不会被清理。。

求大神指明路。。。。。


回复讨论(解决方案)

是的,全部销毁了

全部销毁了的说

程序执行完成,变量自动销毁。

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