Store precompiled opcode in filesystem and load at module startup
|Reported by:||axel||Owned by:||moo|
|Keywords:||Preload, Minit, Startup, SPL||Cc:||asauerhoefer@…|
today i worked on a prelaod mechanism for php classes. The main idea was to "compile" php classes and store it in filesystem. Than to write a little php extension that "preload's" this files at module startup ( e.g. MINIT ).
So this classes where at the beginning available, nobody must include or require this files.
I read many lines of SPL code and zend manuals. Unfortunately my little extension never worked ( Maybe to low coding skill ).
Now i found your extension and read the wiki. Actual your extension does all i need, almost :)
I wan't to ask you, if you think it is technical possible to implement such a feature?
Im not really sure, if the MINIT function is the right place to execute functions like zend_execute ...