#32010 [NEW]: memleaks in mssql_fetch_batch()
| From: | tony2001 at phpclub dot net | Date: | Thu, 17 Feb 2005 14:07:24 +0000 |
| Subject: | #32010 [NEW]: memleaks in mssql_fetch_batch() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-74235@lists.php.net to get a copy of this message | ||
From: tony2001 at phpclub dot net
Operating system: Linux
PHP version: 5CVS-2005-02-17 (dev)
PHP Bug Type: MSSQL related
Bug description: memleaks in mssql_fetch_batch()
Description:
------------
mssql_fetch_batch() leaks in several places.
Reproduce code:
---------------
<?php
$c = mssql_connect($host, $user, $passwd);
mssql_select_db($dbase);
$r = mssql_query("SELECT * FROM test_table");
mssql_fetch_batch($r);
echo "Done\n";
?>
Expected result:
----------------
Done
Actual result:
--------------
/home/dev/php-src/ext/mssql/php_mssql.c(1065) : Freeing 0x082C0BE4 (3
bytes), script=/www/index.php
/home/dev/php-src/ext/mssql/php_mssql.c(1052) : Freeing 0x082C0BAC (3
bytes), script=/www/index.php
--
Edit bug report at http://bugs.php.net/?id=32010&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32010&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32010&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32010&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32010&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32010&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32010&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32010&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32010&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32010&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32010&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32010&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32010&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32010&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32010&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32010&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32010&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32010&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32010&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32010&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32010&r=mysqlcfg