ID: 28620
User updated by: mike at cma dot ee
Reported By: mike at cma dot ee
Status: Open
Bug Type: MySQL related
Operating System: Redhat 7.1 2.4.2-2
PHP Version: 4.3.7RC1
New Comment:
Maybe it should show the warning.
But line number must be correct.. not in Unknown line 0.
Previous Comments:
------------------------------------------------------------------------
[2004-06-03 11:31:18] mike at cma dot ee
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 this bug report at http://bugs.php.net/?id=28620&edit=1