[PHP-DEV] PHP 4.0 Bug #7239 Updated: mssql From: sniper <email protected>
Date: 01/07/01

ID: 7239
Updated by: sniper
Reported By: siim <email protected>
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To:
Comments:

Does this happen with latest snapshot from http://snaps.php.net/ ??
And if it does, please include a GDB backtrace into this bug report.
Remeber to configure with --enable-debug first!
Also, include the whole configure line you have used into this bug report.

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2000-10-16 09:07:03] siim <email protected>
<?

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"

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=7239

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>