@@ 88-91 (lines=4) @@ | ||
85 | { |
|
86 | $output = $this->testCliRuntime('echo ini_get(\'memory_limit\');'); |
|
87 | if ('-1' !== $output && ($this->memoryInBytes($output) < 2 * 1024 * 1024 * 1024)) { |
|
88 | if ($this->testOverride('echo ini_get(\'memory_limit\');', '-d memory_limit=2G', '2G')) { |
|
89 | $this->getAutoConfig()->addCommandLineArgument('-d memory_limit=2G'); |
|
90 | $this->log->writeln('Will override memory_limit of ' . $output . ' with 2G.'); |
|
91 | } |
|
92 | } |
|
93 | ||
94 | return true; |
|
@@ 106-109 (lines=4) @@ | ||
103 | { |
|
104 | $output = $this->testCliRuntime('echo ini_get(\'max_execution_time\');'); |
|
105 | if ((0 !== intval($output)) && (900 > intval($output))) { |
|
106 | if ($this->testOverride('echo ini_get(\'max_execution_time\');', '-d max_execution_time=900', '900')) { |
|
107 | $this->getAutoConfig()->addCommandLineArgument('-d max_execution_time=900'); |
|
108 | $this->log->writeln('Will override max_execution_time of ' . $output . ' with 900 seconds.'); |
|
109 | } |
|
110 | } |
|
111 | ||
112 | return true; |