|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-10 12:12 UTC] graham at directhostinguk dot com
Description: ------------ This closed PHP bug: http://bugs.php.net/bug.php?id=41316 MySQL Bug: http://bugs.mysql.com/bug.php?id=25621 Error in my_thread_global_end(): 1 threads didn't exit I have the same issue even when the script doesn't call any MySQL, but this error only happens when using fast-cgi If I run php 5.2.2 ISAPI the problem goes away. I think this is a php bug It seems to me that the problem lies in the PHP dll "php_mysql.dll" as it is opening the threads but not telling MySql to close them. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Error in my_thread_global_end(): 1 threads didn't exit I don't think it's a MySQL error, since i'm not using it at all. I have no active instances of MySQL running. I'm using PHPLIB Templates and the code is very simple: <?php include ("Includes/template.inc"); $index = new Template("Templates"); $index->set_file("f_index", "index.tpl"); $index->set_var("page_title", "INDEX"); $index->parse("o_index", "f_index"); $index->p("o_index"); ?> I'm running PHP 5.4.2 with MySQL 5.0.45, under Windows XP Pro SP2 with IIS 5.1.Confirmed. Have just tried php5.2-win32-200710092030.zip and the problem is not solved. OS: Windows 2000 Pro HW: Dual CPU Zeon Results the same: C:\php>php-cgi.exe -v PHP 5.2.5-dev (cli) (built: Oct 9 2007 16:04:34) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with DBG v3.2.7, (C) 2000,2007, by Dmitri Dmitrienko Error in my_thread_global_end(): 1 threads didn't exit Note: Overwriting the files php_mysql.dll, php_mysqli.dll with those from 5.2.3 works..... mysql MySQL Support => enabled Client API version => 5.0.45 mysqli MysqlI Support => enabled Client API library version => 5.0.45 Client API header version => 5.0.36 MYSQLI_SOCKET => /tmp/mysql.sock (this shouldn't be here on Win)I was able to reproduce this on a very basic instalation: Apache 2.2.4 PHP 5.2.5 Windows 2003 Server NO Database installed <? $fp = fsockopen("192.168.1.105", 3312); fclose($fp) echo "DONE"; exit; ?> This executes 100%, and gives no errors, but as soon as I stop apache, it gives me the message in the apache error log Error in my_thread_global_end(): 1 threads didn't exit So it seems to me more of a sockets problem than a mysql problem. When I run the same script in CLI, I get no error.Same bug just happened to me in this example: C:\>echo "<?php echo date('T'); ?>" |php "MSD" Error in my_thread_global_end(): 1 threads didn't exit MySQL extension was enabled in php.ini, but I didn't use any of it's functions in example. PHP is 5.2.5, no other mysql related dll's are available on system. I posted this just to confirm that bug exists on my system too.php 5.2.6, Windows Visa or XP I confirm that the 5 seconds delay on exit is still there. Grabbing libmysql.dll from the lastest stable Mysql (5.0.51b) didn't help. Haven't tried to use binaries from php 5.2.1 yet. The problem seems to appear as soon as I play with sockets. <? $fp = fsockopen("www.google.com", 80, $errno, $errstr, 30); if (!$fp) { echo "ERROR: $errstr ($errno)\n"; } else { echo "OK\n"; fclose($fp); } ?>