Robert Enyedi wrote:
I'm not very familiar with the internal architecture of the Zend PHP
engine nor with the PHP module mechanism, but can you reuse compiled PHP
modules in other applications?
Is there a way of calling the functions of a compiled module from a
third party C application?
Thanks,
Robert
Compiled PHP modules could be loaded by any C program (as with any C
shared object) but there would be a large number of hoops you would have
to jump through before you would be able to make any function calls.
However, is the module you wish to use something that is available
exclusively to PHP? Most modules are wrappers around existing C
libraries and as such it would be much easier to just use the base
library rather than trying to emulate a SAPI to load a PHP module.
If you still want to go down this path, then reading the manual section
about creating PHP modules will give you an insight into how this
process works.
Mikey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php