- Is PHP (as of 5.2) thread-safe on Linux/UNIX?
- Would it be possible to use it with Apache Worker-MPM or Event-MPM?
The facts I gathered so far are inconclusive:
- default binaries included in most distributions have ZTS disabled, so I aware, that I'd have to recompile them.
- in theory Zend Engine (core PHP) with ZTS enabled is thread-safe.
- it's said that some modules might not be thread-safe, but haven't found any list of modules that are or that are not.
- PHP FAQ states pretty much same as above.
What's your experience?
EDIT: It's not only about segfaults ("access violations" in windows nomenclature). There is a lot more to thread safety.