Re: Reuse PHP functions in a third-party application
| From: | Richard Lynch | Date: | Wed, 21 Mar 2007 05:31:41 +0000 |
| Subject: | Re: Reuse PHP functions in a third-party application | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250970@lists.php.net to get a copy of this message | ||
On Tue, March 20, 2007 5:27 am, 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?
Probably not...
I suppose that Prioblender thingie or one of the compilers might be
able to be hacked with a PHP CLI binary to kind of do that, but a base
PHP install doesn't ever actually store the opcodes anywhere in a
compiled form as you are imagining.
Even the various Caches only store opcode, and not machine
code/binaries, so you still need the Zend Engine to rip through and
execute them somewhere somehow, I think.
Of course, you could use PHP to provide REST, SOAP, WebDAV, etc
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?