Page 1 of 2
Error in my_thread_global_end(): 3 threads didn't exit
Posted: Tue May 08, 2007 2:06 am
by developer123
I have installed php 5.2.2 (IIS) in window xp. Got lots of errors like "Could not load modules, so i have commented the required dlls.
At last i got the error like require_once("SAM/php_sam.php") - Here I have commented the line php_sam.dll, but now i am getting the following error.
Error in my_thread_global_end(): 3 threads didn't exit
Any idea to resolve this? Thanks in Advance.
Posted: Tue May 08, 2007 8:24 am
by feyd
That isn't a standard function that I'm aware of. Apart of what code is it defined?
Fix: Error in my_thread_global_end():
Posted: Sat May 12, 2007 4:16 pm
by servswitch
Hi,
I had the same Error Messages after Installing Mysql 5.0.41 and PHP 5.2.2 on Windwos2003 with IIS6
Tryed many things - deinstall - downgrade PHP as Well Mysql. - nothing helps correct.
After many hours i fond the Download Links for the PHP-Connectors on
http://dev.mysql.com/downloads/connector/php/
http://dev.mysql.com/get/Downloads/Conn ... /from/pick
http://dev.mysql.com/get/Downloads/Conn ... /from/pick
download and unzipp the files - replace in My PHP and PHP/ext Folder -
WONDER it works now without Error Message and also even faster.
Hope thats also THE HELP for You
kind regards
the connector downloads did not work for me
Posted: Fri May 25, 2007 4:20 pm
by donl
Servswitch,
I am also running MySQL 5.0.41 and PHP 5.2.2 and encountering the same error.
I tried replacing the three files you mentioned but I'm still having the problem.
You mentioned that you deinstalled and downgraded first. But did you end up reinstalling MySQL 5.0.41 and PHP 5.2.2 before replacing the three files or did you stay downgraded? What versions of MySQL and PHP are you currently running and working with. Thanks.
DonL
It works for me.
Posted: Wed May 30, 2007 2:58 pm
by BigAL
I am using -> MySQL 5.0.24, PHP 5.2.2, IIS 5.1, Win XP Pro sp2, IE7
The problem is not in the C:\PHP\ext\php_mysql.dll and C:\PHP\ext\php_mysqli.dll
The problem exists in the C:\PHP\libmysql.dll 1,496KB 5/2/2007 7:23 PM
Replace C:\PHP\libmysql.dll with the copy from MySQL installation
(C:\Program Files\MySQL\MySQL Server 5.0\bin\libmySQL.dll 1,484KB 7/28/2006 1:05 PM)
You may have different modification dates, just use the copy from MySql installation.....
To test if it works create phpcfg.php with the following:
<HTML>
<HEAD>
<TITLE>Current PHP Configuration</TITLE>
</HEAD>
<BODY>
<?php
phpinfo();
?>
</BODY>
</HTML>
Scroll to the end of the result on browser, you should not see the ugly message:
Error in my_thread_global_end(): 3 threads didn't exit
Good Luck !

Posted: Wed May 30, 2007 3:04 pm
by superdezign
Whoa. Four of them. :-p
Posted: Wed May 30, 2007 4:33 pm
by RobertGonzalez
Have any of you guys submitted a bug report yet? That is something that should not happen out of the box.
Did not submit bug report.
Posted: Thu May 31, 2007 7:15 am
by BigAL
Did not submit a bug report.
I found similar bug reports on php.net
I just submitted my solution for this board.
Thanks...
Posted: Thu May 31, 2007 10:24 am
by RobertGonzalez
Good good. I think it is something that needs fixing so hopefully the core team will be spending some time on this.
Posted: Fri Jun 22, 2007 10:34 pm
by anjanesh
A php program of mine was running in command-mode which was retrieving XML feeds from the web, and in the middle, the net got disconnected and I did CTRL+C to end it after which this msg occurred :
Code: Select all
Error in my_thread_global_end(): 3 threads didn't exit
But theres nothing to with MySQL or IIS which others seem to have reported.
Apache 2.0.58 and PHP 5.2.3
EDIT: This error occurs whenever you hit CTRL+C
Posted: Thu Sep 06, 2007 1:00 pm
by wazupbouy
I was receiving the same error message "Error in my_thread_global_end(): 3 threads didn't exit" and phpMyAdmin was running terribly slow. I am running PHP Version 5.2.4, MySQL Version 5.0.45, and phpMyAdmin Version 2.11.0 on Windows XP Pro w/SP2b.
I replaced the libmysql.dll file with the file downloaded from the link above. phpMyAdmin now runs very quickly, but I now get an error message reading "Your PHP MySQL library version 5.0.27 differs from your MySQL server version 5.0.45. This may cause unpredictable behavior."
Are any of you getting the same type of message?
Posted: Thu Sep 06, 2007 1:21 pm
by RobertGonzalez
libmysql.dll is your client library file. Perhaps upgrading that through a newer download of the Windows binary might help.
Posted: Thu Sep 06, 2007 3:40 pm
by wazupbouy
I just installed all of this today from the latest binaries. All versions are current and "stable", but I stil received the error message.
Posted: Thu Sep 06, 2007 4:01 pm
by RobertGonzalez
And just to confirm, this is a Windows system right?
Posted: Thu Sep 06, 2007 5:55 pm
by wazupbouy
Yes.
PHP Version 5.2.4
MySQL Version 5.0.45
phpMyAdmin Version 2.11.0
Windows XP Pro w/SP2b running IIS
MySQL Version 5.0.45 was just downloaded yesterday and installed today. The package must have a bug, but using the older version dll file does give me the other error message.
I looked to see if there was another connector at
http://dev.mysql.com/downloads/connector/php/, but the latest is for version 5.0.27. I could unistall version 5.0.45 and install version 5.0.27, but I cannot find this old version on the mySQL site.
I am sure I am not the only one having this issue.....