#37630 [Csd]: MySQL extensions should link against thread safe client libs if built with ZTS
| From: | mike@php.net | Date: | Thu, 01 Jun 2006 19:35:04 +0000 |
| Subject: | #37630 [Csd]: MySQL extensions should link against thread safe client libs if built with ZTS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97939@lists.php.net to get a copy of this message | ||
ID: 37630
Updated by: mike@php.net
Reported By: openmacnews at gmail dot com
Status: Closed
Bug Type: MySQL related
Operating System: osx
PHP Version: 5.1.4
New Comment:
5.2 (and 6 except PDO)
Previous Comments:
------------------------------------------------------------------------
[2006-06-01 19:27:48] openmacnews at gmail dot com
mike,
thanks.
in which branch is the "fix"? 51, 52 &/or 6?
------------------------------------------------------------------------
[2006-06-01 19:15:50] mike@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2006-06-01 13:22:27] mike@php.net
Set status back to "Open".
------------------------------------------------------------------------
[2006-06-01 08:46:32] tony2001@php.net
No bug here.
It works exactly the way it should.
------------------------------------------------------------------------
[2006-05-31 19:41:07] openmacnews at gmail dot com
> The switch to enable thread safety is --enable-maintainer-zts.
thx for the clarification.
> that you shoulnd't use it unless you've got a really good reason to
do so.
understood. i'm exploring (non-production, yet) 'playing nice' with
apache worker mpm, reentrant mysql libs, and some threaded
functionality we're working on ...
> Now about the reentrancy issues of the mysql extensions:
> ...
> Just a recap, no fix yet.
fair nuf.
fwiw, given your comments, doing:
b4 config:
perl -pi -e 's/mysqlclient\,/mysqlclient_r\,/g'
ext/pdo_mysql/config.m4
perl -pi -e 's/mysqlclient\./mysqlclient_r\./g'
ext/pdo_mysql/config.m4
perl -pi -e 's/libmysqlclient.lib/libmysqlclient_r.lib/g'
ext/mysql/mysql.mak
perl -pi -e 's/LIBNAME=mysqlclient\n/LIBNAME=mysqlclient_r\n/g'
ext/mysql/config.m4
then:
glibtoolize
buildconf
and, after config, b4 make:
perl -pi -e 's/mysqlclient /mysqlclient_r /g' Makefile
perl -pi -e 's/mysqlclient\n/mysqlclient_r\n/g' Makefile
seems, so far to give me a stable/executable build, linked
uniquely/solely against lmysqlclient_r ... of course, i haven't done
any serious functional testing as yet.
let me know if/how i can play 'guinea pig' ...
richard
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37630
--
Edit this bug report at http://bugs.php.net/?id=37630&edit=1