have a look at the mailing list archives / cvs.php.net/pecl/threads,
it's not as simple as just calling pthread_create..
I've done some hacks to php_embed, so you can create threaded servers,
(threads not started from php) but dont expect to pass data between
threads, without some problems..
Rega
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