Bug #51342 [Bgs]: Access Violation with MySQL comand
| From: | jon dot halling at bilnavet dot com | Date: | Sun, 21 Mar 2010 14:18:50 +0000 |
| Subject: | Bug #51342 [Bgs]: Access Violation with MySQL comand | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148801@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51342&edit=1
ID: 51342
User updated by: jon dot halling at bilnavet dot com
Reported by: jon dot halling at bilnavet dot com
Summary: Access Violation with MySQL comand
Status: Bogus
Type: Bug
Package: Reproducible crash
Operating System: Win XP SP3
PHP Version: 5.2.13
New Comment:
I already have added the dir to PATH according to instructions on
http://www.php.net/manual/en/faq.installation.php#faq.installation.addtopath
(linked from http://php.net/manual/en/mysql.installation.php)
This is what my PATH looks like:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program\QuickTime\QTSystem\;C:\Program\MySQL\Server\bin;C:\Program\PHP\ext;C:\Program\Delade
filer\DivX Shared\;C:\Program\Delade filer\Acronis\SnapAPI\
The file php_mysql.dll in folder ext has version 5.2.13.13 (all files
are from the installation package, I have not changed anything).
Is there anything more I have to do? What have I missed? Please explain.
Previous Comments:
------------------------------------------------------------------------
[2010-03-21 13:59:53] pajoye@php.net
Don't use libmysql from MySQL installation but the one we provide. See
the countless reports here to find how to fix it (PATH).
------------------------------------------------------------------------
[2010-03-21 12:30:59] jon dot halling at bilnavet dot com
Description:
------------
I get the error message "PHP has encountered an Access Violation at
[some address]" when I execute mysql_connect() in a php-file accessed by
web browsers. Same result even if the MySQL-server is shut down.
Running Win XP SP3 and all the latest patches, and running Windows built
in IIS webserver, has tested multiple browsers. The php.ini is standard
except for extension php_mysql.dll activated. PHP installation dir is
C:\Program\PHP\ and file is located in
C:\Inetpub\wwwroot\work\db_test.php (http://localhost/work/db_test.php).
Have checked that all files and folders have write access.
The same file accessed from command prompt is not experiencing any
problems, so I have problem generating backtrace according to your
instructions. Please instruct how I can gather more information if
necessary.
Test script:
---------------
echo "BOO ";
$open = mysql_connect($host, $user, $pwd);
echo "FOO";
Expected result:
----------------
BOO FOO
Actual result:
--------------
BOO PHP has encountered an Access Violation at 0183AC6A
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51342&edit=1