开发者

CodeIgniter Stacl Trace

开发者 https://www.devze.com 2023-01-26 11:15 出处:网络
I want to log the stack trace from time to time in my application folder. writing to the log the result 开发者_开发知识库of debug_backtrace() , will cause to:

I want to log the stack trace from time to time in my application folder.

writing to the log the result 开发者_开发知识库of debug_backtrace() , will cause to:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11639862 bytes) in /var/www/trunk/api.subdomain.com/libraries/MY_Log.php on line 13

because of the MVC structure, how can i get the last 10 functions calls/stack.

Thanks


Try to change the memory_limit settings of your php.ini.

If you are using some hosting services and you don't have access to the php.ini, you can still change those settings using some .htaccess file and the php_value directive or ini_set function.

.htaccess example:

php_value memory_limit 16M
0

精彩评论

暂无评论...
验证码 换一张
取 消