Merge pull request #238 from wbbaddons/testPhpVersion
[GitHub/WoltLab/WCF.git] / wcfsetup / test.php
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <title>PHP 5.3 Check</title>
5 </head>
6 <body>
7 <?php
8 /**
9 * Tests the support of PHP 5.3.0 or greater.
10 * ><p><b>Support for PHP is missing.<br />PHP Unterst&uuml;tzung nicht gefunden</b></p> <!--
11 *
12 * @author Marcel Werk
13 * @copyright 2001-2007 WoltLab GmbH
14 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
15 */
16 // check php version
17 // php version
18 $phpVersion = phpversion();
19 $comparePhpVersion = preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $phpVersion);
20 $neededPhpVersion = '5.3.0';
21 if (!(version_compare($comparePhpVersion, $neededPhpVersion) >= 0)) {
22 ?>
23 <p>Your PHP version '<?php echo $phpVersion; ?>' is insufficient for installation of this software. PHP version <?php echo $neededPhpVersion; ?> or greater is required.<br />
24 Ihre PHP Version '<?php echo $phpVersion; ?>' ist unzureichend f&uuml;r die Installation dieser Software. PHP Version <?php echo $neededPhpVersion; ?> oder h&ouml;her wird ben&ouml;tigt.</p>
25 <?php
26 }
27
28 // check ze1_compatibility_mode
29 else if (ini_get('zend.ze1_compatibility_mode')) {
30 ?>
31 <p>The option 'zend.ze1_compatibility_mode' is enabled. Please disable the option in your PHP configuration (php.ini) for a stable work of this software.<br />
32 Die Einstellung 'zend.ze1_compatibility_mode' ist aktiv. F&uuml;r einen einwandfreien Betrieb dieser Software muss die Einstellung in der PHP-Konfiguration (php.ini) deaktiviert werden.</p>
33 <?php
34 }
35
36 // check simplexml
37 else if (!function_exists('simplexml_load_file')) {
38 ?>
39 <p>The 'simplexml' PHP extension is missing. Simplexml is required for a stable work of this software.<br />
40 Die 'simplexml' Erweiterung f&uuml;r PHP wurde nicht gefunden. Diese Erweiterung ist f&uuml;r den Betrieb der Software notwendig.</p>
41 <?php
42 }
43
44 // check zlib extension
45 else if (!function_exists('gzopen')) {
46 ?>
47 <p>The 'zlib' PHP extension is missing. ZLib is required for a stable work of this software.<br />
48 Die 'zlib' Erweiterung f&uuml;r PHP wurde nicht gefunden. Diese Erweiterung ist f&uuml;r den Betrieb der Software notwendig.</p>
49 <?php
50 }
51
52 //
53 else {
54 ?>
55 <p>PHP <?php echo $neededPhpVersion; ?> or greater is available. You can <a href="install.php">start</a> the installation now.<br />
56 PHP <?php echo $neededPhpVersion; ?> oder h&ouml;her wurde gefunden. Sie k&ouml;nnen mit der Installation <a href="install.php">beginnen</a>.</p>
57 <?php
58 }
59 ?>
60 </body>
61 </html>