- Add an API function that can compile arbitrary PHP scripts.
How do you want to handle includes or evals in the code to be compiled? This is a majopr problem I see with a naive standalone compiler.
- Add an API function for loading arbitrary compiled code.
somewhat trickier.
- If possible these should take source input and generating compiled
output to string so we can handle input and output data from other
sources besides files.
wouldn't be too hard, modulo the above.
These would be the basic this that would be necessary.
Around this we could build other tools like GUI interfaces from
compiling sources in batches, building distribution archives, self
extracting and installable PHP applications, etc...
Now, for something probably more challenging: could the compiled output
be fed to Zend Optimizer somehow and get an optimized compiled output
that could be saved, loaded and executed the same way as the
non-optimized compiled output?
No idea. closed source product. :)
How Open Source is APC? Do you take volunteers help (patches, hackers
with CVS accounts, bug reports, etc..)?
APC is completely open-source (release under QPL). Patches are
awesome. CVS write-access is only for maintainers at the moment (and
anon cvs to the world). There's noo hard-and-fast rule, but the base
guideline for maintainer status is contribution fixes/patches of
consistent merit and of more than 10% of the code base.
Great. And if PHP developers agree, would you be interested in
integrating APC extension in PHP, with PHP license of course?
I have no problems with relicensing APC, and I've offered before to contribute it to the php group, and it was turned down. I can give further details off-list, if you are interested.
I looked at all free cache engines (PHPA, APC, Bware). PHPA seems to be
going to non-Open Source route (no code available for everybody). Bware
people are nice and are willing to cooperate even if they don't have
much time. APC, I could not realize how alive the the project is. Do you
actively work on it or are you too busy?
I haven't been very active since October (wish I could say it was a
vacation, but alas, it was just work). In about 3 weeks, I should have
much much more free time and hopefully be able to get back to being very
active in apc.
Ok, that's normal with everybody these days. Anyway, as I said I have
been getting a lot of support to provide a free PHP
compiler/optimizer/cache/encoder. So, this will not go forward for the
lack of will and contributed work.
That's great news.
Keep up the good work,
Manuel Lemos
// George Schlossnagle
// 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0