Re: PHP 4.0 Bug #5614 Updated: Access Violation

From: Date: Wed, 06 Sep 2000 18:20:22 +0000
Subject: Re: PHP 4.0 Bug #5614 Updated: Access Violation
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32435@lists.php.net to get a copy of this message
Yes, this still happens in 4.0.2 using the provided win32 binaries. Matt BD> ID: 5614 BD> Updated by: sniper BD> Reported By: mbeers@udeco.com BD> Status: Feedback BD> Bug Type: MSSQL related BD> Assigned To: BD> Comments: BD> Is this still happening when using php4.0.2 ? BD> --Jani BD> Previous Comments: BD> [2000-07-14 23:10:26] mbeers@udeco.com BD> I am using the Win32 binaries, downloaded on July 14. BD> The error I get is: BD> PHP has encountered an Access Violation at 0150229E. BD> It occurs when I use the mssql_close() function without a link identifier. This is the code BD> which causes the break: BD> <? BD> mssql_connect($SERVER_NAME, $USER_ID, $DB_PASSWORD) or die("unable to connect to BD> server"); BD> mssql_select_db($DB_NAME) or die("unable to connect to db"); BD> $result = mssql_query("select field1, field2 from TestPHP where field1 > 1"); BD> print "num rows=" . mssql_num_rows($result) . "<br>"; BD> while ($data = mssql_fetch_row($result)) { BD> print "field1=$data[0], field2=$data[1]<br>"; BD> } BD> mssql_close(); ?>> BD> If I store the link identifier when I call the connect statement ($link = mssql_connect), and BD> pass that link identifier in when I call close (mssql_close($link), all is well. BD> Finally, it happens with any sql statement I execute. BD> Thank you for your hard work. BD> --------------------------------------------------------------------------- BD> Full Bug description available at: BD> http://bugs.php.net/?id=5614

« previous php.dev (#32435) next »