Edit report at http://bugs.php.net/bug.php?id=46842&edit=1
ID: 46842 Comment by: anatoly dot deryshev at gmail dot com Reported by: pdp2108 at gmail dot com Summary: calls to mysql_connect crash Status: Bogus Type: Bug Package: MySQL related Operating System: win32 only - Windows XP SP2 PHP Version: 5.2.8 New Comment: You must copy libmysql.dll from php installation folder to apache bin folder Previous Comments: ------------------------------------------------------------------------ [2009-01-06 21:52:37] paj...@php.net Never use other DLLs than the one we ship. ------------------------------------------------------------------------ [2009-01-06 21:16:19] savitski at mail dot ru The problem appears if and only if the Apache process uses another libmysql.dll than shipped with PHP 5.2.8 package. To solve the problem keep only libmysql.dll in PHP home dir and delete others. Of course you could check which dll is used before you start delete (for example with help of freeware "Process Explorer" from Microsoft site). In my case the DLL was loaded from MySQL installation path but not PHP. ------------------------------------------------------------------------ [2008-12-26 04:05:55] yottabytewizard at mybboard dot net Had this problem too. The new libmysql.dll seems to be messed up. I ended using the libmysql.dll version included in PHP 5.2.6. I just upgraded to the latest versions of Apache(2.2.11), PHP (5.2.8) and MySQL (5.1.11), but using the dll from php 5.2.6. ------------------------------------------------------------------------ [2008-12-16 18:22:00] michail1982 at gmail dot com I not shure, that is a PHP bug... Thats happends, when i use libMysql.dll from Mysql source.. when i use this dll from prevous Mysql (5.0.51b) it`s OK PS go to Mysql site :) PPS Sorry? my english is bad ------------------------------------------------------------------------ [2008-12-15 21:19:11] adrian at cozuweb dot com I have exactly the same problem, just my Apache server version is 2.2.11. just wanted to add that if I run the script using the cli (php.exe) : php -f dbtest.php it works perfectly. If I access the same file using the web server I get the access violation. The content of dbtest.php is: <?php $connection = mysql_connect("ponchs","root","At1fT43"); echo "$connection"; ?> I started with a clean installation of the three packages, everything else seems to be running fine ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=46842 -- Edit this bug report at http://bugs.php.net/bug.php?id=46842&edit=1