#44869 [Com]: MSSQL Connect => Access Violation

[email protected] ("svfly2 at yandex dot ru")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               44869
 Comment by:       svfly2 at yandex dot ru
 Reported By:      vds dot jeroen at gmail dot com
 Status:           Open
 Bug Type:         MSSQL related
 Operating System: Windows XP SP2
 PHP Version:      5.2.6
 New Comment:

Have same problem on WinXP apache 2.2.9 php 5.2.5

works with ntwdblib 2000.2.8.0
crash with ntwdblib 2000.80.194.0

works with win2003 server with  ntwdblib 2000.80.194.0


Previous Comments:
------------------------------------------------------------------------

[2008-05-21 11:17:17] vds dot jeroen at gmail dot com

It's working when I use FreeTDS.

------------------------------------------------------------------------

[2008-05-07 17:16:53] vds dot jeroen at gmail dot com

I still have the same problem with 5.2.6 final

------------------------------------------------------------------------

[2008-04-30 12:52:15] vds dot jeroen at gmail dot com

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 this bug report at http://bugs.php.net/?id=44869&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.