PHP and PECL extensions for ZTS
+
Par Remi le samedi 15 octobre 2011, 17:24 - HowTo - Lien permanent
PHP module is available for apache in prefork and worker mode. Fedora doesn't provides any extension (which make it unusable).
Since version 5.3.1 extensions for ZTS (worker mode) are available in my repository. Now, PECL extensions for ZTS are also available.
Warning : extensions, or linked libraries, are not all thread-safe which may cause some crash.
Since version 5.3.8-5, I have enhanced the php-devel package to provide the needed stuff to build the PECL extensions in ZTS mode :
- /usr/bin/php-zts/php-config
- /usr/bin/php-zts/phpize
- /usr/include/php-zts/php
Some new macros will make RPM development easier :
- %php_ztsextdir : extension installation dir : %{_libdir}/php-zts/modules
- %php_ztsinidir : configuration file installation dir : %{_sysconfdir}/php-zts.d
- %php_ztsbindir : binary path (php-config et phpize)
So, now, extensions listed below are available, for fedora >= 10 and EL >= 4 :
- php-pecl-apc-3.1.9-3
- php-pecl-bbcode-1.0.3-0.1.b1
- php-pecl-geoip-1.0.7-6
- php-pecl-gearman-0.8.0-1
- php-pecl-gmagick-1.0.9-0.1.b1
- php-pecl-igbinary-1.1.1-2
- php-pecl-imagick-3.0.1-3
- php-pecl-lzf-1.5.2-7
- php-pecl-mailparse-2.1.5-4
- php-pecl-memcache-3.0.6-2
- php-pecl-memcached-1.0.2-9
- php-pecl-mongo-1.2.6-1
- php-pecl-mysqlnd-ms-1.1.1-2
- php-pecl-mysqlnd-qc-1.0.1-2
- php-pecl-ncurses-1.0.1-3
- php-pecl-oauth-1.2.2-2
- php-pecl-radius-1.2.5-11
- php-pecl-solr-1.0.1-2
- php-pecl-sphinx-1.1.0-2
- php-pecl-ssh2-0.11.3-1
- php-pecl-xdebug-2.1.2-2
- php-pecl-yaml-1.0.1-4
- php-magickwand-1.0.8-10
Missing ones should come soon.
So, we have now a quite complete stack, I encourage you to test it.
I expect your feedback.
P.S. as there is no php-mysql extension for ZTS, you will need to install php-mysqlnd instead.
Commentaires
gearman and mailparse added.