|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15765 mssql_query (and mssql_select_db) crashes php.exe
Submitted: 2002-02-27 14:48 UTC Modified: 2003-02-09 02:35 UTC
Avg. Score:4.3 ± 0.9
Reproduced:0 of 1 (0.0%)
From: paprocki at pomerantz dot com Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.1.1 OS: Windows 2000 Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: paprocki at pomerantz dot com
New email:
PHP Version: OS:


 [2002-02-27 14:48 UTC] paprocki at pomerantz dot com
I am able to connect to SQL Server v7.0 over the network, but after I am connected (with either _connect or _pconnect), mssql_select_db with a valid db crashes php.exe.

If I remove mssql_select_db call, mssql_query crashes.

When I removed mssql_select_db call, I added a login to the server which used my db as the default db (so I wouldnt need to select it obviously). I changed my mssql_connect call to reflect the new username and password. I forgot to add select permissions for the table I created, and when I tried to run the code, it actually printed out an error stating that the MSSQL driver couldn't select on the table because of the lack of permissions. When I added permissions to the server and re-ran the code, it then crashed php.exe.

All crashes are 'instruction at "0x00000000" tried to reference "0x00000000"' so that is not really helpful.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-27 15:51 UTC] paprocki at pomerantz dot com
as of this time, I have tested this with ISAPI plugin and php.exe CGI method and it happens using both.
 [2002-10-09 11:34 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-02-09 02:35 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

Without a php.ini file the mssql_query function would crash.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jun 09 11:03:41 2023 UTC