PHP实际上是如何工作的?
有没有一些指南可以描述 PHP 的内部结构?
- 如何加载文件(必需、包含)?
- 它们是如何解析和执行的?
- 内存是如何分配的?
- 对象是如何创建/销毁的?
- 外部模块如何加载?
- 栈/堆如何工作?
- 操作码缓存实际上是如何工作的?
- 常见的技巧和性能技巧?
Is there some guide out there that describes how the PHP internals?
- How files are loaded (required, included)?
- How they are parsed and executed?
- How memory is allocated?
- How objects are created/destroyed?
- How external modules are loaded?
- How the stack/heap works?
- How opcode caching actually work?
- Common hacks and performance tips?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,您应该寻找有关 PHP 内部开发的资源。在别处寻找这些信息真的会很分散。
我建议从当地的书店挑选一本 PHP 核心开发书籍并阅读。如果您想从 PHP.net 开始,PHP.net 有一个欠发达的初学者参考。
Sounds to me like you're you should look for resources on PHP Internal development. Looking for this information elsewhere will be really scattered.
I suggest picking up a PHP Core development book from your local book store and giving it a read. PHP.net has an underdeveloped beginners reference if you wanted to start there.
Sara Golemon 的这本优秀但有些过时的书回答了您的大多数问题。否则,学习 php 内部结构的最佳方法是编译它的调试版本并在调试器下逐步运行它。我做过一次,这是一次令人兴奋的经历。
This excellent although somewhat outdated book by Sara Golemon has answers to the most of your questions. Otherwise, the best way to learn php internals is to compile a debug version of it and run it step by step under a debugger. I did it once and it was an exciting experience.