mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
Ini_set()
#param 2 must be string (php < 8.1)
This commit is contained in:
parent
2acfdecb8d
commit
3fc16910f7
@ -82,9 +82,9 @@ class Command extends CliCommand
|
||||
{
|
||||
MemoryLimit::raiseTo('1024M');
|
||||
|
||||
ini_set('max_execution_time', 0);
|
||||
ini_set('max_execution_time', '0');
|
||||
if (version_compare(PHP_VERSION, '7.0.0') < 0) {
|
||||
ini_set('zend.enable_gc', 0);
|
||||
ini_set('zend.enable_gc', '0');
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
@ -90,7 +90,7 @@ class Migrations
|
||||
public function applyPendingMigrations()
|
||||
{
|
||||
// Ensure we have enough time to migrate
|
||||
ini_set('max_execution_time', 0);
|
||||
ini_set('max_execution_time', '0');
|
||||
|
||||
foreach ($this->getPendingMigrations() as $migration) {
|
||||
$migration->apply($this->connection);
|
||||
|
@ -448,9 +448,9 @@ class IcingaConfig
|
||||
$start = microtime(true);
|
||||
|
||||
MemoryLimit::raiseTo('1024M');
|
||||
ini_set('max_execution_time', 0);
|
||||
ini_set('max_execution_time', '0');
|
||||
// Workaround for https://bugs.php.net/bug.php?id=68606 or similar
|
||||
ini_set('zend.enable_gc', 0);
|
||||
ini_set('zend.enable_gc', '0');
|
||||
|
||||
if (! $this->connection->isPgsql() && $this->db->quote("1\0") !== '\'1\\0\'') {
|
||||
throw new RuntimeException(
|
||||
|
@ -154,7 +154,7 @@ class Sync
|
||||
protected function raiseLimits()
|
||||
{
|
||||
MemoryLimit::raiseTo('1024M');
|
||||
ini_set('max_execution_time', 0);
|
||||
ini_set('max_execution_time', '0');
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
@ -479,7 +479,7 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
|
||||
protected function raiseLimits()
|
||||
{
|
||||
MemoryLimit::raiseTo('1024M');
|
||||
ini_set('max_execution_time', 0);
|
||||
ini_set('max_execution_time', '0');
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user