PHP 4.0 Bug #7239: mssql
| From: | siim at depo dot ee | Date: | Mon, 16 Oct 2000 13:07:04 +0000 |
| Subject: | PHP 4.0 Bug #7239: mssql | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35121@lists.php.net to get a copy of this message | ||
From: siim@depo.ee
Operating system: Linux 2.2.14
PHP version: 4.0.3pl1
PHP Bug Type: Reproduceable crash
Bug description: mssql
<?
if(!($c1 = mssql_connect("server","user","password"))) print
"bla1";
if(!mssql_select_db("database",$c1)) print "bla2";
$s1 = "select vpID from vp";
if(!($c2 = mssql_connect("server","user","password"))) print
"bla12";
if(!mssql_select_db("database",$c2)) print "bla2";
$s2 = "select nimi_et from vp";
if(!$r1 = mssql_query($s1,$c1)) print "bla3";
if(!$r2 = mssql_query($s2,$c2)) print "bla4";
while($d1 = mssql_fetch_row($r1)) {
$d2 = mssql_fetch_row($r2);
print "<br>".$d1[0]." ".$d2[0];
}
mssql_close($c2);
mssql_close($c1); // <---line 24
?>
<------------- end of script --------------->
result:
Segmentation fault
or
Correct output + warning "
Warning: 1 is not a Sybase link index in /home/httpd/html/t.php on line 24"
--
Edit Bug report at: http://bugs.php.net/?id=7239&edit=1