ID: 729 Updated by: jimw Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: i'm pretty sure this was fixed in 4.0. Previous Comments: --------------------------------------------------------------------------- [1998-09-09 02:02:52] [EMAIL PROTECTED] This can cause unpleasant problems when using a library function that cleans up after itself. The script: <? function some_reuseable_function() { // Pretend this function was included from another file $conn2 = mysql_connect('host', 'uid', 'pwd'); echo "Function connection is: $conn2<br>n"; mysql_close($conn2); } $conn1 = mysql_connect('host', 'uid', 'pwd'); echo "Main connection is: $conn1<br>n"; some_reuseable_function(); mysql_close($conn1); ?> The output: Main connection is: 1 Function connection is: 1 Warning: 1 is not a MySQL link index in test.php3 on line 12 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=729&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]