From: mike at cma dot ee
Operating system: Redhat 7.1 2.4.2-2
PHP version: 4.3.7RC1
PHP Bug Type: MySQL related
Bug description: unexpected mysql-free-result warning (with mysql.trace_mode set to 1)
Description:
------------
If mysql.trace_mode is set to 1 the code produces a warning:
Warning: (null)() [function.mysql-free-result]: 1 result set(s) not freed.
Use mysql_free_result to free result sets which were requested using
mysql_query() in Unknown on line 0.
Reproduce code:
---------------
<?
mysql_connect('anyhost', 'anyusr', 'anypass');
mysql_select_db('anydb');
$qResult = mysql_query("SELECT UID FROM Users LIMIT 1");
$aRow = mysql_fetch_assoc($qResult);
?>
Expected result:
----------------
No warning should be displayed
--
Edit bug report at http://bugs.php.net/?id=28620&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28620&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28620&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28620&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28620&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28620&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28620&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28620&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28620&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28620&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28620&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28620&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28620&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28620&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28620&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28620&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28620&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28620&r=float