[PHP-DEV] XML, expat and empty tags

2005-03-26 Thread Vadka
Hi all! So, as it was stressed in expat one day, there are 'empty' tags, like: (without ending ). For now, it is not known what a tag was parsed (XML parser ext). It is not good: the original structure of XML changes. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: h

[PHP-DEV] Embedding, threads and execution of PHP

2005-03-14 Thread Vadka
Hi again! So, I'm not so experienced... But, what can I do with next situation: we have compiled script, we would like to execute a function from that script in another thread (while parent is working). So, I need the clone of compiled and executed parent script. Or, I'm not correct? I'm using zen

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

2005-03-02 Thread Vadka
On Mon, 28 Feb 2005, Bob Beaty wrote: 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

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

2005-03-01 Thread Vadka
On Tue, 1 Mar 2005, Alan Knowles wrote: I think derick does something like this in SRM, but basically if you want to load something in the global thread, and let the children inherit the data / classes /function etc. AFAIR you need to serialize the opcodes, and copy them for each thread. (or use

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

2005-03-01 Thread Vadka
On Tue, 1 Mar 2005, Wez Furlong wrote: ZTS enabled PHP has "strong thread affinity". Calls into the engine are thread-safe provided that you have previously initialized the engine on that thread. Hm... The problem is when we create a thread and call_user_function for the function from the parent t

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

2005-02-28 Thread Vadka
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 ori

[PHP-DEV] call_user_function in multithread env.

2005-02-27 Thread Vadka
Hi! Is it possible to call_user_function in multithreaded environment? (for now, it brings the line "Killed" when executing such a code; Linux) So, I like: func(){ call_user_function(); } .. PHP_FUNCTION(oops){ . pthread_create(...func...); } -- PHP Internals - PHP Runtime Development