memory leak in php script

后端 未结 6 791
盖世英雄少女心
盖世英雄少女心 2021-01-13 14:39

I have a php script that runs a mysql query, then loops the result, and in that loop also runs several queries:

    $sqlstr = \"SELECT * FROM user_pred WHERE         


        
6条回答
  •  灰色年华
    2021-01-13 14:48

    From the php.net memory_get_usage manual:

    Parameters

    real_usage Set this to TRUE to get the real size of memory allocated from system. If not set or FALSE only the memory used by emalloc() is reported.

    With this parameter set to true, the script showed no increase of memory, like I expected.

提交回复
热议问题