comparison installer/check.php @ 8:bf99236cc5cd default tip

try to recover from upgrade fail
author Charlie Root
date Sat, 29 Dec 2018 07:07:34 -0500
parents 4681f974d28b
children
comparison
equal deleted inserted replaced
7:65fd7d441cf1 8:bf99236cc5cd
13 'DOM' => 'dom', 13 'DOM' => 'dom',
14 'Session' => 'session', 14 'Session' => 'session',
15 'XML' => 'xml', 15 'XML' => 'xml',
16 'JSON' => 'json', 16 'JSON' => 'json',
17 'PDO' => 'PDO', 17 'PDO' => 'PDO',
18 'Multibyte' => 'mbstring',
19 'OpenSSL' => 'openssl',
18 ); 20 );
19 21
20 $optional_php_exts = array( 22 $optional_php_exts = array(
21 'FileInfo' => 'fileinfo', 23 'FileInfo' => 'fileinfo',
22 'Libiconv' => 'iconv', 24 'Libiconv' => 'iconv',
23 'Multibyte' => 'mbstring',
24 'OpenSSL' => 'openssl',
25 'Mcrypt' => 'mcrypt',
26 'Intl' => 'intl', 25 'Intl' => 'intl',
27 'Exif' => 'exif', 26 'Exif' => 'exif',
28 'LDAP' => 'ldap', 27 'LDAP' => 'ldap',
28 'GD' => 'gd',
29 'Imagick' => 'imagick',
29 ); 30 );
30 31
31 $required_libs = array( 32 $required_libs = array(
32 'PEAR' => 'pear.php.net', 33 'PEAR' => 'pear.php.net',
33 'Auth_SASL' => 'pear.php.net', 34 'Auth_SASL' => 'pear.php.net',
43 $ini_checks = array( 44 $ini_checks = array(
44 'file_uploads' => 1, 45 'file_uploads' => 1,
45 'session.auto_start' => 0, 46 'session.auto_start' => 0,
46 'mbstring.func_overload' => 0, 47 'mbstring.func_overload' => 0,
47 'suhosin.session.encrypt' => 0, 48 'suhosin.session.encrypt' => 0,
48 'magic_quotes_runtime' => 0,
49 'magic_quotes_sybase' => 0,
50 ); 49 );
51 50
52 $optional_checks = array( 51 $optional_checks = array(
53 // required for utils/modcss.inc, should we require this? 52 // required for utils/modcss.inc, should we require this?
54 'allow_url_fopen' => 1, 53 'allow_url_fopen' => 1,
55 'date.timezone' => '-VALID-', 54 'date.timezone' => '-VALID-',
56 'register_globals' => 0, // #1489157
57 ); 55 );
58 56
59 $source_urls = array( 57 $source_urls = array(
60 'Sockets' => 'http://www.php.net/manual/en/book.sockets.php', 58 'Sockets' => 'http://www.php.net/manual/en/book.sockets.php',
61 'Session' => 'http://www.php.net/manual/en/book.session.php', 59 'Session' => 'http://www.php.net/manual/en/book.session.php',
62 'PCRE' => 'http://www.php.net/manual/en/book.pcre.php', 60 'PCRE' => 'http://www.php.net/manual/en/book.pcre.php',
63 'FileInfo' => 'http://www.php.net/manual/en/book.fileinfo.php', 61 'FileInfo' => 'http://www.php.net/manual/en/book.fileinfo.php',
64 'Libiconv' => 'http://www.php.net/manual/en/book.iconv.php', 62 'Libiconv' => 'http://www.php.net/manual/en/book.iconv.php',
65 'Multibyte' => 'http://www.php.net/manual/en/book.mbstring.php', 63 'Multibyte' => 'http://www.php.net/manual/en/book.mbstring.php',
66 'Mcrypt' => 'http://www.php.net/manual/en/book.mcrypt.php',
67 'OpenSSL' => 'http://www.php.net/manual/en/book.openssl.php', 64 'OpenSSL' => 'http://www.php.net/manual/en/book.openssl.php',
68 'JSON' => 'http://www.php.net/manual/en/book.json.php', 65 'JSON' => 'http://www.php.net/manual/en/book.json.php',
69 'DOM' => 'http://www.php.net/manual/en/book.dom.php', 66 'DOM' => 'http://www.php.net/manual/en/book.dom.php',
70 'Intl' => 'http://www.php.net/manual/en/book.intl.php', 67 'Intl' => 'http://www.php.net/manual/en/book.intl.php',
71 'Exif' => 'http://www.php.net/manual/en/book.exif.php', 68 'Exif' => 'http://www.php.net/manual/en/book.exif.php',
72 'oci8' => 'http://www.php.net/manual/en/book.oci8.php', 69 'oci8' => 'http://www.php.net/manual/en/book.oci8.php',
73 'PDO' => 'http://www.php.net/manual/en/book.pdo.php', 70 'PDO' => 'http://www.php.net/manual/en/book.pdo.php',
74 'LDAP' => 'http://www.php.net/manual/en/book.ldap.php', 71 'LDAP' => 'http://www.php.net/manual/en/book.ldap.php',
72 'GD' => 'http://www.php.net/manual/en/book.image.php',
73 'Imagick' => 'http://www.php.net/manual/en/book.imagick.php',
75 'pdo_mysql' => 'http://www.php.net/manual/en/ref.pdo-mysql.php', 74 'pdo_mysql' => 'http://www.php.net/manual/en/ref.pdo-mysql.php',
76 'pdo_pgsql' => 'http://www.php.net/manual/en/ref.pdo-pgsql.php', 75 'pdo_pgsql' => 'http://www.php.net/manual/en/ref.pdo-pgsql.php',
77 'pdo_sqlite' => 'http://www.php.net/manual/en/ref.pdo-sqlite.php', 76 'pdo_sqlite' => 'http://www.php.net/manual/en/ref.pdo-sqlite.php',
78 'pdo_sqlite2' => 'http://www.php.net/manual/en/ref.pdo-sqlite.php', 77 'pdo_sqlite2' => 'http://www.php.net/manual/en/ref.pdo-sqlite.php',
79 'pdo_sqlsrv' => 'http://www.php.net/manual/en/ref.pdo-sqlsrv.php', 78 'pdo_sqlsrv' => 'http://www.php.net/manual/en/ref.pdo-sqlsrv.php',
89 ?> 88 ?>
90 89
91 <h3>Checking PHP version</h3> 90 <h3>Checking PHP version</h3>
92 <?php 91 <?php
93 92
94 define('MIN_PHP_VERSION', '5.3.7'); 93 define('MIN_PHP_VERSION', '5.4.0');
95 if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) { 94 if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) {
96 if (PHP_MAJOR_VERSION != 5) { 95 $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
97 $RCI->fail('Version', 'PHP5 is required, ' . PHP_VERSION . ' detected'); 96 } else {
98 }
99 else {
100 $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
101 }
102 }
103 else {
104 $RCI->fail('Version', 'PHP Version ' . MIN_PHP_VERSION . ' or greater is required ' . PHP_VERSION . ' detected'); 97 $RCI->fail('Version', 'PHP Version ' . MIN_PHP_VERSION . ' or greater is required ' . PHP_VERSION . ' detected');
105 } 98 }
106 ?> 99 ?>
107 100
108 <h3>Checking PHP extensions</h3> 101 <h3>Checking PHP extensions</h3>