开发者

How does PHP actually work? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜