Re: thread safety for binding issues

From: Date: Fri, 29 Mar 2002 17:14:46 +0000
Subject: Re: thread safety for binding issues
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81935@lists.php.net to get a copy of this message
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. Shane

« previous php.dev (#81935) next »