Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-02 09:51:00 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-02 09:51:00 +0300
commit9a2e6b9970c6fb217f38ae6fb4454f17e4a9a6e1 (patch)
tree6e844fd309fe03953d9351cc285ccec40cc4208f /libs
parentd9056be8813c0c5c5bccb0ad7727d3cb7fad49c9 (diff)
- fix #377 (Installation: check for php-xml: undefined function utf8_decode())
Diffstat (limited to 'libs')
-rw-r--r--libs/upgradephp/upgrade.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php
index 671fb65592..0e441e1c22 100644
--- a/libs/upgradephp/upgrade.php
+++ b/libs/upgradephp/upgrade.php
@@ -100,7 +100,15 @@ if (!defined("E_RECOVERABLE_ERROR")) { define("E_RECOVERABLE_ERROR", 4096); }
* @return string transformed into JSON equivalent
*/
if (!function_exists("json_encode")) {
- function json_encode($var, /*emu_args*/$obj=FALSE) {
+ if(!function_exists('utf8_decode'))
+ {
+ Piwik_ExitWithMessage('
+ When using PHP < 5.2.0, Piwik requires the PHP extension XML.
+ <br>Please install this extension to continue using Piwik.
+ <br>More information on <a href="http://php.net/manual/en/xml.installation.php">http://php.net/manual/en/xml.installation.php</a>.');
+ }
+
+ function json_encode($var, /*emu_args*/$obj=FALSE) {
#-- prepare JSON string
$json = "";