130 |
kaklik |
1 |
<?php |
|
|
2 |
|
|
|
3 |
if (version_compare(phpversion(), '5.0.0', 'lt')) { |
|
|
4 |
|
|
|
5 |
# XXX: these includes shouldn't be necessary! |
|
|
6 |
require_once 'include/configclass.inc'; |
|
|
7 |
$config = new Config; |
|
|
8 |
require_once 'include/config.inc'; |
|
|
9 |
require_once($config->getPHPCompatFile()); |
|
|
10 |
|
|
|
11 |
// Configure necessary functions here |
|
|
12 |
$funcs = array( |
|
|
13 |
'stripos', |
|
|
14 |
'http_build_query', |
|
|
15 |
); |
|
|
16 |
|
|
|
17 |
// End configuration |
|
|
18 |
|
|
|
19 |
foreach ($funcs as $fn) { |
|
|
20 |
if (PHP_Compat::loadFunction($fn) != true) |
|
|
21 |
error_log('Could not load function `'.$fn.'\' as required by PHP Compat.'); |
|
|
22 |
} |
|
|
23 |
|
|
|
24 |
} |
|
|
25 |
?> |