From: keith at atyourservicetech dot com Operating system: Windows Server 2003 PHP version: 5.2.9 PHP Bug Type: MySQL related Bug description: PHP has encountered an Access Violation
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 bug report at http://bugs.php.net/?id=47668&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47668&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47668&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47668&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47668&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47668&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47668&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47668&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47668&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47668&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47668&r=support Expected behavior: http://bugs.php.net/fix.php?id=47668&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47668&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47668&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47668&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47668&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47668&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47668&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47668&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47668&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47668&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47668&r=mysqlcfg