Adrian Preuss
Adrian Preuss

Reputation: 3113

Enable ZTS on PHP without compiling

When I try to install pthreads with PECL, the installation says that I must enable ZTS:

configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled

I've installed PHP with Apt package manager and I don't want to have to replace that install with a self-compiled version.

How can I enable ZTS without manual compiling?

Upvotes: 4

Views: 1661

Answers (1)

Joe Watkins
Joe Watkins

Reputation: 17158

You cannot; Zend Thread Safety is a compile time, only, option.

Either find a thread safe package being maintained by someone else, or build yourself.

Upvotes: 4

Related Questions