S
S
semki0962017-05-05 14:09:31
PHP
semki096, 2017-05-05 14:09:31

How to overcome the cycle that eats up all the memory?

I am making a sandbox where I want to compile php. Faced a problem - if you run an infinite loop with a execution limit of 1 second

<?php
$i=1;
do{
    echo 'Итерация номер '. $i . '<br>';
    $i++;
}while($i != 0);

then approximately after 5 launches in a row - mysql falls off, I think that all the memory is simply eaten up. How can the problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2017-05-05
@semki096

Do you think or eat?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question