I would like to know about the representation of the static (class) field in the PHP interpreter.
For example, when you load a class in Java, static fields will be associated with this class object; this means that two applications running on the same JVM (and the same classloader) will have some kind of common global variable;)
I'm just wondering if I use some kind of PHP accelerator / opcode caching, what really caches? Is it just compiled bytecode or part of the state of the virtual machine (responsible for storing class objects)?
This is because I am afraid of static fields / single objects sharing requests, etc.
PS: I'm really new to PHP, so I'm sorry if the question is too dumb :)
source
share