|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-18 08:38 UTC] tony2001@php.net
[2006-12-18 10:38 UTC] marcos dot neves at gmail dot com
[2006-12-18 10:47 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 15:00:02 2025 UTC |
Description: ------------ Starting with mysql 5.2.0, mysql_free_result is required be called before end of script Reproduce code: --------------- <? mysql_connect("localhost", "root", ""); $result = mysql_query("SELECT 1 + 2"); ?> Expected result: ---------------- no warnings, the results should be disposed at end of script, as documentantion saids and as like was before. Actual result: -------------- Warning: Unknown: 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