From: Lo?c C. <lo...@us...> - 2001-04-10 13:03:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv18934/chat Modified Files: input.php3 handle_input.php3 Log Message: Fixed the db link bug with Apache server Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** input.php3 2001/04/10 10:46:31 1.7 --- input.php3 2001/04/10 13:03:37 1.8 *************** *** 145,149 **** else $slashedMsgTo = '\'' . pmcSlashSingleQuotes($msgTo) . '\''; ! $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' --- 145,149 ---- else $slashedMsgTo = '\'' . pmcSlashSingleQuotes($msgTo) . '\''; ! $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' *************** *** 158,162 **** . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' . ')'; - $dbLink->query($msgQuery); --- 158,161 ---- *************** *** 165,168 **** --- 164,169 ---- } // end of handle 'true' messages + // The db link should be closed but this can't be done under Apache because + // links id aren't updated :( $dbLink->close(); } // end of handle submitted message *************** *** 173,176 **** --- 174,178 ---- */ dbSessionSave(); + $dbSessionDbLink->close(); Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** handle_input.php3 2001/04/10 10:46:31 1.6 --- handle_input.php3 2001/04/10 13:03:37 1.7 *************** *** 165,169 **** } // end of handle 'true' messages ! $dbLink->close(); } // end of handle submitted message --- 165,171 ---- } // end of handle 'true' messages ! // The db link should be closed but this can't be done under Apache because ! // links id aren't updated :( ! // $dbLink->close(); } // end of handle submitted message *************** *** 173,176 **** --- 175,180 ---- */ dbSessionSave(); + $dbSessionDbLink->close(); + |