[php-maint] Bug#469081: Please link against libmysqlclient_r instead of libmysqlclient
Stefan Fritsch
sf at sfritsch.de
Sun Mar 2 22:34:54 UTC 2008
package: php5-mysql
severity: wishlist
tags: patch
Dear php maintainers,
as you might know, apr-util added support for mysql recently. However,
this feature cannot be activated yet, since it would make libaprutil
link against libmysqlclient_r while php-mysql links against
libmysqlclient. Unfortunately, libmysqlclient_r and libmysqlclient
use the same symbol versions and cannot safely be used together in
the same process.
While mysql might change the symbol versioning in the future (see
#450535), it is unlikely that this will happen in time for lenny.
Therefore, I ask you to change php5-mysql to link against
libmysqlclient_r instead of libmysqlclient (patch attached).
There are some '#ifdef ZTS's in the code, but if I read the code
and [1] correctly, this is only necessary if a thread that is calling
MySQL functions did not create the connection to the MySQL database.
Since this cannot happen in single threaded php, it should be safe to
just change the linkage without any code changes.
With the patch, at least the mysql extension seems to work ok (but I
don't know how to test mysqli and pdo_mysql).
It would be nice if you could make this change soon, so that it
receives enough testing before lenny release.
Cheers,
Stefan
[1] http://dev.mysql.com/doc/refman/5.0/en/threaded-clients.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libmysql_r
Type: text/x-diff
Size: 1726 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20080302/4f5a8ac5/attachment.diff
More information about the pkg-php-maint
mailing list