Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tabalt opened this issue Aug 17, 2014 · 3 comments
Open

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

tabalt opened this issue Aug 17, 2014 · 3 comments

Comments

@tabalt
Copy link

tabalt commented Aug 17, 2014

照下面这个文档写的:
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 tabalt changed the title yaf命令行下y yaf在命令行下关闭模板会内存泄露 Aug 17, 2014
@laruence
Copy link
Owner

恩, 这个是已知的问题, 不过这个不是真正意义上的"内存"泄露(PHP会在请求结束后统一释放). 我会在对ng的支持的过程中, 统一修复这一系列的问题

@Mrhyuan
Copy link

Mrhyuan commented Aug 19, 2014

原来对NG还没全支持啊?我还准备这几天测试下

@dwroy
Copy link

dwroy commented Sep 19, 2014

同样的问题 /php-yaf/requests/yaf_request_simple.c(106) : Freeing 0x7F2EB633D1B0 (10 bytes)

请问,应该怎么配置才不会在命令行出现这个提示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants