Hi!

> Of course you can link your extension with any possible library.
> Particularly with pthreads, when PHP is compiled non thread safe, you
> need to be very careful using the PHP APIs. Many will be not thread
> safe in that case. Best strategy were probably not using PHP APIs in
> the thread callbacks at all.

Besides that, many libraries (e.g. ICU4C) have either non-thread-safe
parts (e.g. functions with global state) or special actions need to be
performed to use them in thread-safe manner, which PHP will not perform
when built in non-ZTS mode. So you need to be careful with third-party
libraries too.

-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to