From: <car...@us...> - 2025-02-14 06:01:02
|
Revision: 11100 http://sourceforge.net/p/phpwiki/code/11100 Author: carstenklapp Date: 2025-02-14 06:01:00 +0000 (Fri, 14 Feb 2025) Log Message: ----------- Execute php checks first. check for common php install problems on windows Modified Paths: -------------- trunk/index.php Modified: trunk/index.php =================================================================== --- trunk/index.php 2025-02-14 05:20:25 UTC (rev 11099) +++ trunk/index.php 2025-02-14 06:01:00 UTC (rev 11100) @@ -31,14 +31,21 @@ * */ + +if (version_compare(PHP_VERSION, '5.3.3', '<')) { + exit("Your PHP version is too old. You must have at least PHP 5.3.3."); +} +if (!function_exists('_')) { + die("The PHP extension 'gettext' is required for PhpWiki. Add: extension=gettext to php.ini"); + //include("upgradephp-19/ext/gettext.php");//experimental for older php versions or where php extensions are not compiled in +} +if (!function_exists('mb_regex_encoding')) { + die("The PHP extension 'mbstring' is required for PhpWiki. Add: extension=mbstring to php.ini"); +} require_once(dirname(__FILE__) . '/lib/prepend.php'); require_once(dirname(__FILE__) . '/lib/IniConfig.php'); IniConfig(dirname(__FILE__) . "/config/config.ini"); -if (version_compare(PHP_VERSION, '5.3.3', '<')) { - exit(_("Your PHP version is too old. You must have at least PHP 5.3.3.")); -} - //////////////////////////////////////////////////////////////// // PrettyWiki // Check if we were included by some other wiki version This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |