#44869 [NEW]: MSSQL Connect => Access Violation
From: vds dot jeroen at gmail dot com
Operating system: Windows XP SP2
PHP version: 5.2.6RC5
PHP Bug Type: MSSQL related
Bug description: MSSQL Connect => Access Violation
Description:
------------
When trying to connect to a local MSSQL 2005 Express server using
mssql_connect() in combination with IIS 5.1 on Windows XP SP2, I get this
error:
PHP has encountered an Access Violation at 7333F15A
When I run the script some more, I get this error.
PHP has encountered an Access Violation at 7333F179
When I run the script some more, I don't have a problem.
When I connect to another MSSQL server than my local one, I don't have a
problem at all.
I tried it with PHP 5.2.5 and 5.2.6RC5
I'm not the only one with this problem:
http://www.php.ru/forum/viewtopic.php?p=43508&sid=f670026df23ed66bcbed99e77344bc52
http://bugs.php.net/bug.php?id=44718
When I use Apache 2.2.2, Apache crashes with PHP 5.2.5 when trying to
connect.
BTW: I'm using the newer ntwdblib.dll (2000.80.194.0)
Reproduce code:
---------------
$username = "sa";
$password = "*********";
$database = "plrapport";
$conn = mssql_connect("LAPTOPHP\SQLEXPRESS","$username","$password");
Expected result:
----------------
Nothing should happen, but the connection should be made. I check if the
connection is made by running a query.
Actual result:
--------------
When I just try to connect, with or without issueing a query, I get
PHP has encountered an Access Violation at 7333F15A
I tried to make a backtrace, but I ended up with a very long mht file.
Download it here:
http://maybeme.be/Downloads/CrashHang_Report__PID_3208(2_dumps)__PID_668(2_dumps)__04302008142359968.mht
--
Edit bug report at http://bugs.php.net/?id=44869&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44869&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44869&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44869&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44869&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44869&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44869&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44869&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44869&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44869&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44869&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44869&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44869&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44869&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44869&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44869&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44869&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44869&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44869&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44869&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44869&r=mysqlcfg
Thread (8 messages)
- vds dot jeroen at gmail dot com