ID: 37630
Updated by: [EMAIL PROTECTED]
Reported By: openmacnews at gmail dot com
-Status: Bogus
+Status: Open
Bug Type: MySQL related
Operating System: osx
PHP Version: 5.1.4
New Comment:
Set status back to Open.
Previous Comments:
[2006-06-01 08:46:32] [EMAIL PROTECTED]
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
[2006-05-31 17:58:38] [EMAIL PROTECTED]
The switch to enable thread safety is --enable-maintainer-zts. The
name suggests though, that you shoulnd't use it unless you've got a
really good reason to do so.
Now about the reentrancy issues of the mysql extensions:
None of ext/mysql, ext/mysqli, ext/pdo_mysql check for the reentrant
version of the client library if ZTS is enabled.
ext/mysql though, calls mysql_thread_init() and mysql_thread_end() and
thus cause sort of a deadlock if linked against libmysqlclient_r.
Just a recap, no fix yet.
[2006-05-30 16:34:35] openmacnews at gmail dot com
mike,
great. rather than dribbles of info, can you, then, please specify what
configuration option does and how to end up linked agaist only the
right/single library?
bottom line is i'm looking for thread-safe php + mysql, linked against
libmysqlclient_r.
let's just say the documentation hasn't been, at least for me,
forthcoming on the matter ...
[2006-05-30 16:22:54] [EMAIL PROTECTED]
This configure flag does not enable thread safety.
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=37630edit=1