#47668 [Opn->Bgs]: PHP has encountered an Access Violation
| From: | pajoye@php.net | Date: | Sun, 15 Mar 2009 22:11:50 +0000 |
| Subject: | #47668 [Opn->Bgs]: PHP has encountered an Access Violation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134728@lists.php.net to get a copy of this message | ||
ID: 47668
Updated by: pajoye@php.net
Reported By: keith at atyourservicetech dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Windows Server 2003
PHP Version: 5.2.9
New Comment:
"The libmysql.dll file that ships with teh Windows binary is not
compatible with php5."
It is. The problem is to use the MySQL DLL with PHP. Don't do that,
ever.
And no bug > bogus.
Previous Comments:
------------------------------------------------------------------------
[2009-03-15 22:08:08] keith at atyourservicetech dot com
Description:
------------
This is an issue more with mySQL than php, but figured a help should be
posted here as well:
The libmysql.dll file that ships with teh Windows binary is not
compatible with php5. If mysql appears in the path directive PRIOR to
the php directory, php5 will run into access violations. To remidy the
problem, one of the two following solutions can be applied:
1) Make sure the php5 directory appears BEFORE the mysql directory in
the PATH environment variable, or
2) Copy the libmysql.dll file from the php5 directory to the mysql
directory.
I searched HOURS for this and only found ONE obscure reference to it!
Figured I would post it out here for all!
Keith Clark
Reproduce code:
---------------
Any php code that attempts to access mysql databases
Actual result:
--------------
PHP has encountered an Access Violation at .......
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47668&edit=1