S
S
Steve2021-07-27 10:58:14
PHP
Steve, 2021-07-27 10:58:14

unit test. php.ini out of memory?

Made a continuous integration (gitlab CI)
The test is interrupted by the error Allowed memory size of 134217728 bytes exhausted (tried to allocate 577536 bytes)
In php.ini in the docker, increased the memory from 1024M to 2048M but the error is still the same.
What do you say about this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2021-07-27
@rPman

Check if there are commands like in the php code itself ini_set('memory_limit', '128M');

A
Alexander Karabanov, 2021-07-27
@karabanov

Wrong php.ini edited.
For CLI run php -i | grep 'Loaded Configuration File'
For FPM (or whatever you're using) make a file with the content <?php phpinfo();?> query it and find 'Loaded Configuration File' on the resulting page.
Here are these php.ini and edit.
When edited, do not forget to restart FPM (or whatever you use there), for CLI settings are applied immediately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question