php.net |  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
Votes:3
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [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] fmk@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net 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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC