Bug #28620 [Com]: unexpected mysql-free-result warning (with mysql.trace_mode set to 1)
| From: | Elise at porsche dot com | Date: | Sat, 29 Oct 2022 02:32:33 +0000 |
| Subject: | Bug #28620 [Com]: 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-242703@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=28620&edit=1
ID: 28620
Comment by: Elise at porsche 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:
I have got the same bug as well when I was designing my website
(https://vascarabag.com/product/new-posc-luxury-leather-women-handbag/)github.com . Can anyone help
me to solve it?
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