Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Show warning in Admin -> About when PHP runs in 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Aug 27, 2024
1 parent 3306fad commit 9e3d6c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dev/Settings/Admin/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
coreWarning: false,
coreVersion: '',
coreVersionCompare: -2,
php64: true,
load1: 0,
load5: 0,
load15: 0,
Expand Down Expand Up @@ -69,6 +70,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
this.coreWarning(!!data.core.warning);
this.coreVersion(data.core.version || '');
this.coreVersionCompare(data.core.versionCompare);
this.php64(data.php[1].loaded);
} else {
this.coreReal(false);
this.coreWarning(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ <h3>System</h3>
</tbody>
</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>
<th>Extension</th>
<th>Loaded</th>
Expand Down

0 comments on commit 9e3d6c6

Please sign in to comment.