install.patch

Gero -, 04/20/2009 09:45 am

Download (2.3 kB)

 
install.php (working copy)
66 66
</tr>
67 67
<tr>
68 68
<th>PCRE UTF-8</th>
69
<?php if ( ! @preg_match('/^.$/u', 'ñ')): $failed = TRUE ?>
69
<?php if ( !function_exists('preg_match')): $failed = TRUE ?>
70
<td class="fail"><a href="http://php.net/pcre">PCRE</a> support is missing.</td>
71
<?php elseif ( ! @preg_match('/^.$/u', 'ñ')): $failed = TRUE ?>
70 72
<td class="fail"><a href="http://php.net/pcre">PCRE</a> has not been compiled with UTF-8 support.</td>
71 73
<?php elseif ( ! @preg_match('/^\pL$/u', 'ñ')): $failed = TRUE ?>
72 74
<td class="fail"><a href="http://php.net/pcre">PCRE</a> has not been compiled with Unicode property support.</td>
......
97 99
<?php else: $failed = TRUE ?>
98 100
<td class="fail">The <a href="http://php.net/iconv">iconv</a> extension is not loaded.</td>
99 101
<?php endif ?>
102
</tr>
103

  
100 104
<tr>
105
<th>SPL Enabled</th>
106
<?php if (function_exists('spl_autoload_register')): ?>
107
<td class="pass">Pass</td>
108
<?php else: $failed = TRUE ?>
109
<td class="fail"><a href="http://php.net/spl">SPL</a> is not enabled.</td>
110
<?php endif ?>
111
</tr>
112

  
101 113
<?php if (extension_loaded('mbstring')): ?>
114
<tr>
102 115
<th>Mbstring Not Overloaded</th>
103 116
<?php if (ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING): $failed = TRUE ?>
104 117
<td class="fail">The <a href="http://php.net/mbstring">mbstring</a> extension is overloading PHP's native string functions.</td>
105 118
<?php else: ?>
106 119
<td class="pass">Pass</td>
120
</tr>
107 121
<?php endif ?>
122
<?php else: // check for utf8_[en|de]code when mbstring is not available ?>
123
<tr>
124
<th>XML support</th>
125
<?php if (!function_exists('utf8_encode') || !function_exists('utf8_decode')): $failed = TRUE ?>
126
<td class="fail">PHP is compiled without <a href="http://php.net/xml">XML</a> support, thus lacking support for <code>utf8_encode()</code>/<code>utf8_decode()</code>.</td>
127
<?php else: ?>
128
<td class="pass">Pass</td>
129
<?php endif ?>
108 130
</tr>
109 131
<?php endif ?>
110
</tr>
111 132
<tr>
112 133
<th>URI Determination</th>
113 134
<?php if (isset($_SERVER['REQUEST_URI']) OR isset($_SERVER['PHP_SELF'])): ?>
......
116 137
<td class="fail">Neither <code>$_SERVER['REQUEST_URI']</code> or <code>$_SERVER['PHP_SELF']</code> is available.</td>
117 138
<?php endif ?>
118 139
</tr>
140

  
119 141
</table>
120 142

  
121 143
<div id="results">