Skip to content
Extraits de code Groupes Projets
Valider 4586ac5b rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixes #4265 Removing dependancy on 5.3.6 (in Log.php) and increasing requirement to 5.3.2

parent 4f1128ea
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -455,7 +455,11 @@ class Log extends Singleton
$message = vsprintf($message, $sprintfParams);
}
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
if (version_compare(phpversion(), '5.3.6', '>=')) {
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT);
} else {
$backtrace = debug_backtrace();
}
$tag = Plugin::getPluginNameFromBacktrace($backtrace);
// if we can't determine the plugin, use the name of the calling class
......
......@@ -17,8 +17,8 @@
$piwik_errorMessage = '';
// Minimum requirement: Namespaces in 5.3
$piwik_minimumPHPVersion = '5.3';
// Minimum requirement: stream_resolve_include_path in 5.3.2, namespaces in 5.3
$piwik_minimumPHPVersion = '5.3.2';
$piwik_currentPHPVersion = PHP_VERSION;
$minimumPhpInvalid = version_compare($piwik_minimumPHPVersion, $piwik_currentPHPVersion) > 0;
if ($minimumPhpInvalid) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter