1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
Daniel Neto 2025-04-13 13:44:20 -03:00
parent 6279bc2638
commit cf9d61915e

View file

@ -204,7 +204,7 @@ function canCloseConnection(){
function _mysql_close()
{
global $global, $mysql_connect_was_closed, $mysql_connect_is_persistent;
if (!$mysql_connect_is_persistent && _mysql_is_open() && !isCommandLineInterface() && getRealIpAddr() !== '127.0.0.1') {
if (canCloseConnection()) {
//_error_log('MySQL Closed '. json_encode(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)));
$mysql_connect_was_closed = 1;
try {