Page 2 of 2

Posted: Thu Sep 06, 2007 6:10 pm
by RobertGonzalez
Can you run a phpinfo() page and report back the section on mysql please.

Posted: Sun Sep 16, 2007 1:04 pm
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. :)

Posted: Mon Sep 17, 2007 11:15 am
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.

Re: It works for me.

Posted: Fri Jan 18, 2008 1:28 pm
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!