#28472 [NEW]: Call to mssql_free_result() crashes Apache

From: Date: Fri, 21 May 2004 12:17:46 +0000
Subject: #28472 [NEW]: Call to mssql_free_result() crashes Apache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59839@lists.php.net to get a copy of this message
From: valery at blagovest dot com Operating system: FreeBSD 4.9-RELEASE PHP version: 4.3.6 PHP Bug Type: Reproducible crash Bug description: Call to mssql_free_result() crashes Apache Description: ------------ Script in Reproduce code section cause crash. If call to mssql_free_result() is commented all work fine. This script worked on PHP 4.2.2 with no problem. Database table from which select is performed contains integer and char fields (nothing unusual). --------------------------- FreeBSD 4.9-RELEASE Apache/1.3.22 PHP 4.3.6 Configure Command: '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--with-sybase-ct=/usr/local/freetds' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-gettext' '--with-xml' '--with-imap=../imap-2004' Reproduce code: --------------- mssql_connect('server', 'user', 'passw'); mssql_select_db('database'); $res = mssql_query('select * from Table'); while ($row = mssql_fetch_object($res)) { /* do smth */ } mssql_free_result($res); Expected result: ---------------- All but no crash. Actual result: -------------- Apache crashes with Segmentation Fault. -- Edit bug report at http://bugs.php.net/?id=28472&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28472&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28472&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28472&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28472&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28472&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28472&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28472&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28472&r=support Expected behavior: http://bugs.php.net/fix.php?id=28472&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28472&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28472&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28472&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28472&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28472&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28472&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28472&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28472&r=float

« previous php.bugs (#59839) next »