Bug #47668 [Com]: PHP has encountered an Access Violation
| From: | fredsilsbee at yahoo dot com | Date: | Mon, 26 Apr 2010 00:08:27 +0000 |
| Subject: | Bug #47668 [Com]: PHP has encountered an Access Violation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149910@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=47668&edit=1
ID: 47668
Comment by: fredsilsbee at yahoo dot com
Reported by: keith at atyourservicetech dot com
Summary: PHP has encountered an Access Violation
Status: Bogus
Type: Bug
Package: MySQL related
Operating System: Windows Server 2003
PHP Version: 5.2.9
New Comment:
changing the order in the path worked...thanks
Previous Comments:
------------------------------------------------------------------------
[2009-03-15 22:11:50] pajoye@php.net
"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.
------------------------------------------------------------------------
[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/bug.php?id=47668&edit=1