Skip to content

Commit

Permalink
Fixed issue #11868: Zlib library missing
Browse files Browse the repository at this point in the history
Dev Zlib library is now an installation requirement
  • Loading branch information
c-schmitz committed Jun 13, 2017
1 parent 6d8d37c commit 7f5296d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions application/controllers/InstallerController.php
Expand Up @@ -885,6 +885,11 @@ function check_DirectoryWriteable($directory, &$data, $base, $keyError, $bRecurs
if (!check_PHPFunction('mb_convert_encoding', $aData['mbstringPresent']))
$bProceed = false;

// zlib library check
if (!check_PHPFunction('zlib_get_coding_type', $aData['zlibPresent'])) {
$bProceed = false;
}

// JSON library check
if (!check_PHPFunction('json_encode', $aData['bJSONPresent']))
$bProceed = false;
Expand Down
18 changes: 9 additions & 9 deletions application/views/installer/precheck_view.php
Expand Up @@ -76,6 +76,11 @@ function dirReport($dir, $write)
<td><span class='fa fa-check text-success' alt="Yes"></span></td>
<td><?php echo $mbstringPresent; ?></td>
</tr>
<tr>
<td><?php eT("PHP zlib library");?></td>
<td><span class='fa fa-check text-success' alt="Yes"></span></td>
<td><?php echo $zlibPresent ; ?></td>
</tr>
<tr>
<td><?php eT("PHP/PECL JSON library"); ?></td>
<td><span class='fa fa-check text-success' alt="Yes"></span></td>
Expand Down Expand Up @@ -115,27 +120,22 @@ function dirReport($dir, $write)
</thead>
<tbody>
<tr>
<td>PHP GD library</td>
<td><?php eT("PHP GD library"); ?></td>
<td><span class='fa fa-check text-success' alt="Check"></span></td>
<td><?php echo $gdPresent ; ?></td>
</tr>
<tr>
<td>PHP LDAP library</td>
<td><?php eT("PHP LDAP library"); ?></td>
<td><span class='fa fa-check text-success' alt="Check"></span></td>
<td><?php echo $ldapPresent ; ?></td>
</tr>
<tr>
<td>PHP zip library</td>
<td><?php eT("PHP zip library"); ?></td>
<td><span class='fa fa-check text-success' alt="Check"></span></td>
<td><?php echo $zipPresent ; ?></td>
</tr>
<tr>
<td>PHP zlib library</td>
<td><span class='fa fa-check text-success' alt="Check"></span></td>
<td><?php echo $zlibPresent ; ?></td>
</tr>
<tr>
<td>PHP imap library</td>
<td><?php eT("PHP imap library"); ?></td>
<td><span class='fa fa-check text-success' alt="Check"></span></td>
<td><?php echo $bIMAPPresent ; ?></td>
</tr>
Expand Down

0 comments on commit 7f5296d

Please sign in to comment.