yaf icon indicating copy to clipboard operation
yaf copied to clipboard

yaf在命令行下关闭模板会内存泄露

Open tabalt opened this issue 10 years ago • 3 comments

照下面这个文档写的: http://www.laruence.com/manual/yaf.incli.times.html

执行 php cli.php "request_uri=/cli/index/index"

默认会去找模板文件,如果加上 这一句:

Yaf_Dispatcher::getInstance()->disableView();

就会内存泄露:

[Sun Aug 17 11:08:06 2014] Script: 'xxxx/xxx/cli.php' /private/tmp/pear/temp/yaf/requests/simple.c(93) : Freeing 0x10D037D80 (16 bytes), script=xxxx/xxx/cli.php === Total 1 memory leaks detected ===

tabalt avatar Aug 17 '14 03:08 tabalt