How to trace PHP errors?

前端 未结 5 534
独厮守ぢ
独厮守ぢ 2021-01-14 01:51

I get the following error:

[23-Feb-2011 19:51:29] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 512 bytes) in /obj/cla         


        
5条回答
  •  清歌不尽
    2021-01-14 02:14

    That's most likely exactly where the problem occurred - your script is sucking up almost all of the 128megabyte limit, and then the database class tries to allocate a bit more space to read something from the database, the limit gets crossed and the script barfs.

    What are you doing that requires using 128meg of memory?

提交回复
热议问题