Rev 1073 | Rev 1090 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1073 | Rev 1086 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | // Do not include anything (except the supplements) yet. |
21 | // Do not include anything (except the supplements) yet. |
22 | // Keep this file clean from fancy syntax sugar, otherwise old PHP versions |
22 | // Keep this file clean from fancy syntax sugar, otherwise old PHP versions |
23 | // will get a compilation error and then they won't see our friendly error message. |
23 | // will get a compilation error and then they won't see our friendly error message. |
24 | // More information about the required PHP version: doc/developer_notes/php7_compat.txt |
24 | // More information about the required PHP version: doc/developer_notes/php7_compat.txt |
25 | 25 | ||
- | 26 | define('INSIDE_OIDPLUS', true); |
|
- | 27 | ||
26 | if (version_compare(PHP_VERSION, $oidplus_min_version='7.0.0') < 0) { |
28 | if (version_compare(PHP_VERSION, $oidplus_min_version='7.0.0') < 0) { |
27 | // Note: These strings are not translated, because in case of an incompatible |
29 | // Note: These strings are not translated, because in case of an incompatible |
28 | // PHP version, we are not able to load language plugins at all. |
30 | // PHP version, we are not able to load language plugins at all. |
29 | $message = '<p>'.sprintf('OIDplus requires at least PHP version %s!<br>You are currently using version %s',$oidplus_min_version,PHP_VERSION).'</p>'; |
31 | $message = '<p>'.sprintf('OIDplus requires at least PHP version %s!<br>You are currently using version %s',$oidplus_min_version,PHP_VERSION).'</p>'; |
30 | oidplus_dependency_panic($message); |
32 | oidplus_dependency_panic($message); |