Re: [PHP-DEV] How to embed PHP5 into multi-threaded C app?

2005-03-01 Thread Bob Beaty
should not efree() memory allocated on one thread from outside of that thread, on pain of segfault. eg: resources from one thread cannot be safely passed on to another thread. --Wez. On Mon, 28 Feb 2005 14:24:05 -0600, Bob Beaty <[EMAIL PROTECTED]> wrote: Which is my concern. I've loo

Re: [PHP-DEV] How to embed PHP5 into multi-threaded C app?

2005-02-28 Thread Bob Beaty
Which is my concern. I've looked at the code differences, and it appears that this modification works for running different source files through the engine, but I'm concerned about the safety of zend_eval_string() if I initialize the engine in one thread and then try to have several threads cal

[PHP-DEV] How to embed PHP5 into multi-threaded C app?

2005-02-28 Thread Bob Beaty
All, I've searched the web for this answer and I'm stumped. I can't find the answers. So I thought I'd try the lists. Here goes: I have seen how to embed PHP 5 using the code like: ... php_embed_module.ub_write = my_ub_write_func; php_embed_module.log_message = my_log_fu