Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294967296 bytes)

前端 未结 4 1188
逝去的感伤
逝去的感伤 2020-12-03 19:08

My project uses an open source PHP MySQL library https://github.com/ajillion/PHP-MySQLi-Database-Class

But the project mid-year report: \"Fatal error: Allowed memory

4条回答
  •  攒了一身酷
    2020-12-03 19:15

    You are exceeding the maximun available memory. Yow have two options:

    • Increase the maximum allowed memory to each PHP script either by configuration (memory_limit directive in php.ini) or in execution time by using ini_set('memory_limit', '200M')

    • Improve the code to handle only the required information.

提交回复
热议问题