Re: How to embed PHP5 into multi-threaded C app?

From: Date: Mon, 28 Feb 2005 19:08:45 +0000
Subject: Re: How to embed PHP5 into multi-threaded C app?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-15230@lists.php.net to get a copy of this message
On Mon, 28 Feb 2005, Alan Knowles wrote:
these still need tidying up alot, but the do work. http://docs.akbkhome.com/php_embed.c.txt http://docs.akbkhome.com/php_embed.h.txt replace the code in php_embed with them, make sure you compile with the zts enabled, and the macros's are similar to the original embed (use threaded start call at application start up, and thread start /start end within the pthread_start(...callback..) method Thread safeness is not a problem for a single thread.
The problem is to call user functions from different threads (tsrm_ls pointed to somewhere in different threads, global vars etc are not protected).

« previous php.internals (#15230) next »