ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ServerConfiguration.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
33{
34 // — PHP runtime —
35
36 public function getPhpVersion(): string;
37
38 public function getPhpSapi(): string;
39
40 public function isFpm(): bool;
41
45 public function getPhpBinary(): string;
46
47 // — Error handling —
48
49 public function getErrorReportingLevel(): int;
50
51 public function isErrorLoggingEnabled(): bool;
52
53 public function isErrorDisplayEnabled(): bool;
54
55 // — Memory & upload limits —
56
57 public function getMemoryLimit(): DataSize;
58
62 public function getUploadSizeLimit(): DataSize;
63
64 public function getPostMaxSize(): DataSize;
65
66 public function getUploadMaxFilesize(): DataSize;
67
68 // — Execution constraints —
69
73 public function getMaxExecutionTime(): int;
74
75 public function getMaxInputVars(): int;
76
77 // — Operating system —
78
79 public function getOperatingSystem(): string;
80
81 public function getOperatingSystemFamily(): string;
82}
This class provides the data size with additional information to remove the work to calculate the siz...
Definition: DataSize.php:31
Read access to PHP runtime and server configuration.
getMaxExecutionTime()
Returns max_execution_time in seconds.
getPhpBinary()
Returns the escaped path to the PHP CLI binary.
getUploadSizeLimit()
Effective upload size limit: min(post_max_size, upload_max_filesize).