Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Short version of my problem:
Any call to mysql_connect() eventually generates a hang and a "Error in my_thread_global_end(): 3 threads didn't exit." However, the PHP code and the calls to the SQL server all work fine. I am using MySQL 5.0.45 and PHP 5.2.3 on Windows XP Pro IIS.
Thanks for any help! I am completely stuck on this.
Long version:
This code always hangs:
--------------------------------------------Code: Select all
<?php
echo('Started<br>');
$host="127.0.0.1:7777";
$dbuser="root";
$password="mypassword";
mysql_connect($host,$dbuser,$password);
echo('Finished<br>');
?>Here is the output:
--------------------------------------------
Started
Finished
Error in my_thread_global_end(): 3 threads didn't exit
--------------------------------------------
I get the same thing if I use
mysql_close();
or if I use
$h=mysql_connect($host,$dbuser,$password);
mysql_close($h);
or if I use $host="localhost:7777";
Any code I use that includes mysql_close has the same problem. I uninstalled MySQL and PHP, deleted the directories, rebooted, did a fresh install as shown below. Same problem.
Calls to mysql_query() work fine however. The problem only happens at the end of the script.
Any ideas? Thanks for looking!!!
Here are the installation options I used:
Installed MySQL 5.0.45
Enabled TCP/IP on port 7777
Transactional DB only
Include BIN path
Make root password: mypassword
Install PHP 5.2.3
IIS CGI
MySQL extension
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]