ID: 28620
Updated by: [EMAIL PROTECTED]
Reported By: mike at cma dot ee
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Redhat 7.1 2.4.2-2
PHP Version: 4.3.7RC1
New Comment:
It is correct behavior, the line number does no longer exist at the end
of the request, and there is no way to asssociate this information
either.
Previous Comments:
------------------------------------------------------------------------
[2004-06-03 11:38:01] mike at cma dot ee
Maybe it should show the warning.
But line number must be correct.. not in Unknown line 0.
------------------------------------------------------------------------
[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