ID: 37739 User updated by: stefan at whocares dot de Reported By: stefan at whocares dot de Status: Open Bug Type: *Compile Issues Operating System: Solaris 10 (probably all) PHP Version: 5.1.4 New Comment:
That should read libphp5.so. Sorry for the typo. Previous Comments: ------------------------------------------------------------------------ [2006-06-08 09:02:00] stefan at whocares dot de Description: ------------ When compiling PHP as an Apache module, libmysqlclient.so will be used no matter whether it's a threading (worker) Apache or a standard (prefork) environment. Hoewever, in a threading environment, libmysqlclient_r.so would be the correct choice. Since all the threading checks in the configure script are done *after* picking the MySQL library to use, I don't see any easy way to fix this. The best thing to do would be to check for the environment first and then use "mysql_config --libs_r" instead of "mysql_config --libs". Reproduce code: --------------- Just try to make PHP use the thread-safe libraries provided by MySQL. You'll fail. The only solution I've found is to call "configure" the way I want to and afterwards run "sed -e 's/mysqlclient/mysqlclient_r/g' Makefile > Makefile.ts; cp Makefile.ts Makefile". Actual result: -------------- As it happens, the CLI will work fine whereas the libphp4.so will report a "Cannot connect to MySQL ..." as stated here: http://bugs.mysql.com/bug.php?id=8472 (And this is way old, if I may say so). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37739&edit=1
