Lines Matching +full:php +full:- +full:version
1 <?php
46 if ($lm < time() - (60 * 60 * 24) || $lm < @filemtime(DOKU_INC . DOKU_SCRIPT)) {
56 $http->timeout = 12;
57 $resp = $http->get(DOKU_MESSAGEURL . $updateVersion);
63 Logger::debug("checkUpdateMessages(): unexpected HTTP response received", $http->error);
79 * Return DokuWiki's version (split up in date and type)
85 $version = [];
86 //import version string
87 if (file_exists(DOKU_INC . 'VERSION')) {
89 $version['date'] = trim(io_readFile(DOKU_INC . 'VERSION'));
90 $version['type'] = 'Release';
92 $version['type'] = 'Git';
93 $version['date'] = 'unknown';
97 $args = ['git', 'log', '-1', '--pretty=format:%h %cd', '--date=short'];
100 [$version['sha'], $date] = explode(' ', $commitInfo);
101 $version['date'] = hsc($date);
102 return $version;
106 // we cannot use git on the shell -- let's do it manually!
116 $packedRefs = file_get_contents(DOKU_INC . '.git/packed-refs');
119 return $version;
125 $version['sha'] = $headCommit;
137 if ($ts && $date = date('Y-m-d', $ts)) {
138 $version['date'] = $date;
144 $version['date'] = 'update version ' . $updateVersion;
145 $version['type'] = 'snapshot?';
147 return $version;
151 * Return DokuWiki's version
153 * This returns the version in the form "Type Date (SHA)". Where type is either
155 * last commit. SHA is the short SHA of the last commit - this is only added on
158 * If no version can be determined "snapshot? update version XX" is returned.
159 * Where XX represents the update version number set in doku.php.
161 * @return string The version string e.g. "Release 2023-04-04a"
166 $version = getVersionData();
167 $sha = empty($version['sha']) ? '' : ' (' . $version['sha'] . ')';
168 return $version['type'] . ' ' . $version['date'] . $sha;
179 $data['php'] = 'PHP ' . PHP_VERSION;
202 * @return array an os-release array, might be empty
209 if (@file_exists('/etc/os-release')) {
211 $osRelease = $reader('/etc/os-release');
212 } elseif (@file_exists('/etc/synoinfo.conf') && @file_exists('/etc/VERSION')) {
215 $synoVersion = $reader('/etc/VERSION');
220 $osRelease['VERSION'] = $synoVersion['productversion'] ?? '';
224 $osRelease['VERSION'],
245 msg('DokuWiki version: ' . getVersion(), 1);
247 msg('Your PHP version is too old (' . phpversion() . ' vs. 8.2+ needed)', -1);
249 msg('PHP version ' . phpversion(), 1);
252 msg('Your PHP version is too old', -1);
257 if ($mem === -1) {
258 msg('PHP memory is unlimited', 1);
260 msg('PHP is limited to less than 16MB RAM (' . filesize_h($mem) . ').
261 Increase memory_limit in php.ini', -1);
263 msg('PHP is limited to less than 20MB RAM (' . filesize_h($mem) . '),
264 … you might encounter problems with bigger pages. Increase memory_limit in php.ini', -1);
266 msg('PHP is limited to less than 32MB RAM (' . filesize_h($mem) . '),
267 … but that should be enough in most cases. If not, increase memory_limit in php.ini', 0);
276 msg('Changelog is not writable', -1);
284 msg('Importing old changelog failed', -1);
290 msg('Importoldchangelog plugin not disabled after import', -1);
297 msg('conf directory is not writable', -1);
303 msg('conf/users.auth.php is writable', 1);
305 msg('conf/users.auth.php is not writable', 0);
316 msg('mb_string extension not available - PHP only replacements will be used', 0);
320 msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1);
323 …msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1);
328 msg('No valid locale is set for your PHP setup. You should fix this', -1);
330 msg('Your locale <code>' . hsc($loc) . '</code> seems not to be a UTF-8 locale,
337 …Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0', -1);
345 $INPUT->server->str('REMOTE_USER'),
360 msg('The current page is not writable by the webserver', -1);
366 msg('The current page is not writable by you', -1);
372 $indexer->checkIntegrity();
373 if (!$indexer->isIndexEmpty()) {
389 -1
395 $http->max_redirect = 0;
396 $http->timeout = 3;
397 $http->sendRequest('https://www.dokuwiki.org', '', 'HEAD');
400 if (isset($http->resp_headers['date'])) {
401 $time = strtotime($http->resp_headers['date']);
402 $diff = $time - $now;
423 * @param int $lvl -1 = error, 0 = info, 1 = success, 2 = notify
433 -1 => 'error',
448 if ($evt->advise_before()) {
449 /* Show msg normally - event could suppress message show */
466 $evt->advise_after();
484 // is the message public? - everyone and anyone can see it
522 echo "<!--\n";
524 echo "\n-->";
539 * @deprecated 2020-08-13
551 Logger::getInstance(Logger::LOG_DEBUG)->log(
583 $depth = count($backtrace) - 1;
612 $calls[$depth - $i] = sprintf(