Error in my_thread_global_end(): 3 threads didn't exit

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Can you run a phpinfo() page and report back the section on mysql please.
wscreate
Forum Newbie
Posts: 1
Joined: Sun Sep 16, 2007 12:57 pm

Post by wscreate »

I was getting the same error on an essentially equal setup. I checked everything, and all looked well, except my scripts use short open tags ( <? ) as opposed to ( <?php ). I checked php.ini and short open tags were off. I thought, "it can't be that easy". I edited php.ini so that

short_open_tag = On

and viola, the problem was gone. :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Just a suggestion, but it will be more to your benefit to change the tags to regular open tags rather than change the PHP settings. I hear talk that short tag settings will be deprecated (possibly) in future releases of PHP which means that ultimately you will have to code with standard tags instead of short tags.
halfcocked
Forum Newbie
Posts: 1
Joined: Fri Jan 18, 2008 1:27 pm

Re: It works for me.

Post by halfcocked »

BigAL wrote: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 ! :)
This solved it for me. Thanks!
Post Reply