On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote :
> Markus Fischer wrote:
> > Hi,
> >
> > how much thread-safe is PHP on linux when compiled with
> > --enable-experimental-zts ? When I a set up a callback
> > handler for a 3rd library which uses threads and in this (C)
> > callback I call call_user_function() (to provide custom
> > callbacks) -> bang , I get a segfault. Should it work and I'm
> > doing something stupid or is this some limitation? Hints?
> >
> > - Markus
> >
>
> PHP is thread safe, not multi-threaded. ie. scripts cannot be
> multi-threaded. You will have to somehow proxy the data back to the
> original calling thread for your library to work.
Ah, understood. So, the short answer would be it was by own
stupidity ;-)
About proxying the data .. you don't happen to have some more
description or resource how to accomplish this before I try
to reinvent the wheel ? thanks.
- Markus
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php