[phc-general] A couple of questions

John Sutton johnjs at aristotle.net
Sat Feb 4 16:58:28 GMT 2012


First, my compliments on PHC. Nice work. I especially like the
ability to create PHP extensions since I do a lot of web development in PHP.
Being able to speed up the processing and protect my intellectual property
is important to me. PHC seems to provide that.

I noticed in the extension building, Zend tools are used with PHC providing
the "C" code to compile. Once I create my extension. I thought of two questions.

1). Can I use my extension on any 'standard build' (LAMP) system as long as it
is binary compatible (same OS, machine)? I build mine on a 64 bit Ubuntu 10.04.
So I am thinking I can use my extension in the same environment as long as
it supports the PHP functions I call.

2). When happens when multiple web pages call the same function defined
in the extension? Is it multi-threaded or something like that to prevent collisions
between those concurrent function calls? I am thinking so, but not sure.


Thanks

John J. Sutton


More information about the phc-general mailing list