This error is related to the interaction between PHP and MySQL.
If you do not use MySQL databases in your PHP code (As it is not used in the sample code you provided), simply disable the MySQL extension in your PHP configuration file. Edit php.ini file in the PHP installation directory and change the line:
[FONT="Courier New"]extension=php_mysql.dll[/FONT]
to:
[FONT="Courier New"];extension=php_mysql.dll[/FONT]
If you need MySQL, then the workaround for this known problem is to replace the libmysql.dll file in your PHP 5.2.5 installation directory with the same file from the older version 5.2.1. This older version can be downloaded from www.php.net and does not have this "thread didn't exit" problem.
This is not a quite tidy workaround, but it works and as far as I know, no tidier solution is available currently. I hope PHP developers (or MySQL developers?) solve this problem in the next release of their software
Fadishei