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
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2009-03-02 09:51:00 +0300
committermattpiwik <matthieu.aubry@gmail.com>2009-03-02 09:51:00 +0300
commitd40d2be8457954e62d0439a658e85a7ab4111a15 (patch)
tree6e844fd309fe03953d9351cc285ccec40cc4208f /libs/upgradephp
parent121f19e62a878dbe60874a691ccde13e303fdb0c (diff)
- fix #377 (Installation: check for php-xml: undefined function utf8_decode())
git-svn-id: http://dev.piwik.org/svn/trunk@950 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/upgradephp')
-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 = "";