PHP 5.4 and build of PECL ZTS extension.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

PHP 5.4 now provides ZTS stuff required to build extension.

An example of such a build is available in the php-pecl-mysqlnd-ms
package (which still wait for a formal review).

See: https://bugzilla.redhat.com/show_bug.cgi?id=742729#c4

Full spec:
https://raw.github.com/remicollet/remirepo/master/php-pecl-mysqlnd-ms/php-pecl-mysqlnd-ms.spec

This is a dual build (NTS + ZTS). ZTS build is conditional
(for f16/f17 compatibility)

This use the new macros provides by php-devel

	%php_ztsextdir	%{_libdir}/php-zts/modules
	%php_ztsinidir 	%{_sysconfdir}/php-zts.d
	%php_ztsincldir	%{_includedir}/php-zts/php
	%php_ztsbindir	%{_bindir}/php-zts

Of course, before adding a ZTS build, you need to check that the used
libraries are thread safe ;)

Feedback, and of course review, are welcome

Hopes this example will help.

Regards,
Remi.


P.S.1 I plan to fix some of pecl extensions I own to provide both NTS
and ZTS extensions.

P.S.2 Sorry for cross-posting, I recommend further discussion on
php-devel list.
_______________________________________________
php-devel mailing list
php-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/php-devel



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora KDE]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux