Show warning in Admin -> About when PHP runs in 32bit

This commit is contained in:
the-djmaze 2024-08-27 13:38:42 +02:00
parent 3306fadc47
commit 9e3d6c6e23
2 changed files with 8 additions and 1 deletions

View file

@ -16,6 +16,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
coreWarning: false, coreWarning: false,
coreVersion: '', coreVersion: '',
coreVersionCompare: -2, coreVersionCompare: -2,
php64: true,
load1: 0, load1: 0,
load5: 0, load5: 0,
load15: 0, load15: 0,
@ -69,6 +70,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
this.coreWarning(!!data.core.warning); this.coreWarning(!!data.core.warning);
this.coreVersion(data.core.version || ''); this.coreVersion(data.core.version || '');
this.coreVersionCompare(data.core.versionCompare); this.coreVersionCompare(data.core.versionCompare);
this.php64(data.php[1].loaded);
} else { } else {
this.coreReal(false); this.coreReal(false);
this.coreWarning(false); this.coreWarning(false);

View file

@ -75,7 +75,12 @@
</tbody> </tbody>
</table> </table>
<h3>PHP optional extensions</h3> <h3>PHP</h3>
<div data-bind="hidden: php64" class="alert">
<i class="fontastic" style="color:red"></i>
PHP is running in 32bit mode. <a href="https://github.com/the-djmaze/snappymail/issues/830#issuecomment-1372112793">read here</a>
</div>
<table class="table table-hover table-bordered"><thead><tr> <table class="table table-hover table-bordered"><thead><tr>
<th>Extension</th> <th>Extension</th>
<th>Loaded</th> <th>Loaded</th>