phpautoloadopcode-cache

Do PHP opcode cache work with __autoload?


Sorry if this is basic, I am trying to learn as much as I can about OO in PHP and I am slowly learning how to use it (very limited).

So I am wanting to know if __autoload() has any affect on PHP opcode cache's?


Solution

  • (Disclaimer : I only know APC)

    What an opcode cache do is :

    The important point, here, is the entry point : the full path to the file.


    What autoloading generally do is :

    So, the informations that are relevant for the opcode cache (full path to the file, and the fact that it is included/required) are still here.

    In consequence, autoload shouldn't bring any trouble with op code caching.

    (And, when using APC, it doesn't, as far as I can tell)