PMCORE-3835

This commit is contained in:
Mauricio Veliz
2022-05-13 17:09:51 -04:00
parent c07f468d20
commit 3c363b498d
11 changed files with 3086 additions and 2026 deletions

View File

@@ -411,7 +411,6 @@ if (false !== strpos(PHP_SAPI, 'cgi'))
set_time_limit(0);
ini_set('track_errors', true);
ini_set('html_errors', false);
ini_set('magic_quotes_runtime', false);
// define stream constants
define('STDIN', fopen('php://stdin', 'r'));
@@ -425,5 +424,5 @@ if (false !== strpos(PHP_SAPI, 'cgi'))
}
// close the streams on script termination
register_shutdown_function(create_function('', 'fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;'));
register_shutdown_function(function(){fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;});
}