Re: [PHP-DEV] Persist context across threads?

2012-05-21 Thread Richard Lynch
On Mon, May 14, 2012 1:47 pm, David Rueter wrote: > I am interested in preserving the complete PHP context for a thread > (globals, > variables, interpreter, etc.--everything) for later access from a > different > thread. > > What would be involved in this? It seems like: > > 1) Avoid calling ts_f

[PHP-DEV] Persist context across threads?

2012-05-14 Thread David Rueter
I am interested in preserving the complete PHP context for a thread (globals, variables, interpreter, etc.--everything) for later access from a different thread. What would be involved in this? It seems like: 1) Avoid calling ts_free_thread 2) Call tsrm_set_interpreter_context from new thread