php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5614 Access Violation
Submitted: 2000-07-14 23:10 UTC Modified: 2000-10-20 15:51 UTC
From: mbeers at udeco dot com Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0 Release Candidate 2 OS: Windows 2000
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mbeers at udeco dot com
New email:
PHP Version: OS:

 

 [2000-07-14 23:10 UTC] mbeers at udeco dot com
I am using the Win32 binaries, downloaded on July 14.

The error I get is: 
  PHP has encountered an Access Violation at 0150229E. 

It occurs when I use the mssql_close() function without a link identifier. This is the code which causes the break:

<? 
mssql_connect($SERVER_NAME, $USER_ID, $DB_PASSWORD) or die("unable to connect to server");
mssql_select_db($DB_NAME) or die("unable to connect to db");
$result = mssql_query("select field1, field2 from TestPHP where field1 > 1");

print "num rows=" . mssql_num_rows($result) . "<br>";

while ($data = mssql_fetch_row($result)) {
  print "field1=$data[0], field2=$data[1]<br>"; 
}

mssql_close();
?>

If I store the link identifier when I call the connect statement ($link = mssql_connect), and pass that link identifier in when I call close (mssql_close($link), all is well.

Finally, it happens with any sql statement I execute.

Thank you for your hard work.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-04 20:44 UTC] sniper@php.net
Is this still happening when using php4.0.2 ?

--Jani
 [2000-09-06 18:01 UTC] sniper@php.net
User feedback:
------------
Yes, this still happens in 4.0.2 using the provided win32 binaries.


 [2000-10-20 15:51 UTC] fmk@php.net
This is fixed in CVS and it will be available from php 4.0.4

- Frank
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 24 14:01:30 2025 UTC