title: Dynamically configure PHP for thread safety --enable-maintainer-zts, or use yum to install pthreads?
body: <p>Is there a way to enable thread safety in PHP without recompiling, or to use YUM to do this?</p>
  
  <p>I am trying to install pthreads and it requires PHP to have been compiled with <code>--enable-maintainer-zts</code>. However, I do not with to recompile because I would like to manage my PHP stack using yum. I am currently using the REMI repo. I notice there is a package php-zts, however, there is not one available for my PHP version of 4.4 and I cannot find a source RPM for php-zts. </p>
  
  <p>Is there a way I can use yum and enable thread safety in PHP, so I can install pThread by using</p>
  
  <pre><code>#pecl install channel://pecl.php.net/pthreads-0.0.42
  
  downloading pthreads-0.0.42.tgz ...
  Starting to download pthreads-0.0.42.tgz (53,755 bytes)
  .............done: 53,755 bytes
  33 source files, building
  running: phpize
  Configuring for:
  PHP Api Version:         20100412
  Zend Module Api No:      20100525
  Zend Extension Api No:   220100525
  building in /var/tmp/pear-build-rootkThpG6/pthreads-0.0.42
  running: /var/tmp/pthreads/configure
  
  ...
  
  checking whether to enable Threading API... yes, shared
  checking checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled
  ERROR: `/var/tmp/pthreads/configure' failed
  </code></pre>
  
  <p>As you can see it fails, above, because PHP doesn't have ZTS enabled.</p>