#28620 [Opn->Bgs]: unexpected mysql-free-result warning (with mysql.trace_mode set to 1)
| From: | derick@php.net | Date: | Thu, 03 Jun 2004 10:48:47 +0000 |
| Subject: | #28620 [Opn->Bgs]: unexpected mysql-free-result warning (with mysql.trace_mode set to 1) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60319@lists.php.net to get a copy of this message | ||
ID: 28620
Updated by: derick@php.net
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