eth #6123: Requirement Checker proc_open (#6154)

* eth #6123: Requirement Checker proc_open

* Update SelfTest.php

* Update CHANGELOG-DEV.md

* Update CHANGELOG-DEV.md

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
Gevorg Mansuryan 2023-03-10 11:59:29 +04:00 committed by GitHub
parent d7832a18de
commit 0a00ce7497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -29,3 +29,4 @@ HumHub Changelog (DEVELOP)
- Enh #5625: Update jQuery UI to version 1.13
- Enh #6144: Added ability to change/disable `Forgot your password?` link
- Fix #4988: Unable to archive space on Form Validation errors
- Enh #6123: Added check for `proc_open` function in Requirement Checker

View File

@ -407,6 +407,21 @@ class SelfTest
];
}
// Checks `proc_open` is on in Disabled Functions
$title = 'PHP - ' . Yii::t('AdminModule.information', 'Disabled Functions');
if (function_exists('proc_open')) {
$checks[] = [
'title' => $title,
'state' => 'OK'
];
} else {
$checks[] = [
'title' => $title,
'state' => 'WARNING',
'hint' => Yii::t('AdminModule.information', 'Make sure that the `proc_open` function is not disabled.')
];
}
// Checks Database Data
$checks = self::getDatabaseResults($checks);