Bug #28620 [Com]: unexpected mysql-free-result warning (with mysql.trace_mode set to 1)
Edit report at https://bugs.php.net/bug.php?id=28620&edit=1
ID: 28620
Comment by: ket dot o dot planet2020 at gmail dot com
Reported by: mike at cma dot ee
Summary: unexpected mysql-free-result warning (with
mysql.trace_mode set to 1)
Status: Not a bug
Type: Bug
Package: MySQL related
Operating System: Redhat 7.1 2.4.2-2
PHP Version: 4.3.7RC1
Block user comment: N
Private report: N
New Comment:
A great post
https://www.primeareviews.com/best-fertilizer-for-hydrangeas/
Previous Comments:
------------------------------------------------------------------------
[2004-06-03 12:48:46] derick@php.net
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.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=28620&edit=1
Thread (5 messages)