ID: 30605 User updated by: v_shiray at ukr dot net -Summary: Resource freeing Reported By: v_shiray at ukr dot net Status: Bogus Bug Type: Reproducible crash Operating System: Linux PHP Version: 4.3.9 New Comment:
Sorry for persistence but no one has answered on this issue on [EMAIL PROTECTED] ... http://marc.theaimsgroup.com/?t=109901656700004&r=1&w=2 Maybe you will be able to answer shortly as you answered that I am not correct. Previous Comments: ------------------------------------------------------------------------ [2004-10-29 00:06:17] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Never post the same bug twice, have patience. ------------------------------------------------------------------------ [2004-10-29 00:02:12] v_shiray at ukr dot net Description: ------------ Sorry, but I has not received an answers on my submision: http://bugs.php.net/bug.php?id=30592 Maybe I was wrong to set "Type of Bug" ... So I expect "correct" answers or other opinion for received results. The problem has been detected on: Slackware 10.0, MySQL 4.0.20, PHP 4.3.8, 4.3.9, 5.0.2 RedHat 9, MySQL 3.23.58, PHP 4.3.9 Expected result has received on: Slackware 10.0, MySQL 4.0.20, PHP 4.3.6 or when line $db2 = 0; had been commented. Reproduce code: --------------- error_reporting(E_ALL); $db1 = mysql_connect ('localhost', 'test', '1'); $db2 = mysql_connect ('localhost', 'test', '1'); mysql_close($db2); $db2 = 0; $result = mysql_query('SELECT 1+1', $db1); if ($result) { $row = mysql_fetch_row($result); echo "Result: {$row[0]}\n"; } Expected result: ---------------- Result: 2 Actual result: -------------- Warning: mysql_query(): 4 is not a valid MySQL-Link resource in ... $result = mysql_query('SELECT 1+1', $db1); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30605&edit=1