PHP exec() use of memory

前端 未结 1 1322
不思量自难忘°
不思量自难忘° 2021-01-13 22:59

I can\'t seem to find a definitive answer for this one.

When invoking a shell command using exec() from PHP, does the memory that shell command uses cou

1条回答
  •  再見小時候
    2021-01-13 23:43

    The exec() command does not directly count towards the PHP since the process is executed separately not from within the PHP Process. Having said that if you use any output variable with the command they would count towards the limit.

    So if you had a file which produced a lot of verbose logging, and you were capturing that logging it would count towards the memory limit.

    0 讨论(0)
提交回复
热议问题