doumo2501
2013-10-03 10:14
浏览 20
已采纳

PHP:什么是特殊缓冲区?

Quote from http://php.net/ob_end_clean

Reasons for failure are first that you called the function without an active buffer or that for some reason a buffer could not be deleted (possible for special buffer)

What is this special buffer?

Right now, to clean all buffers, I have code like this

while (@ob_end_clean());

But if for some reason it should encounter a "special buffer" this would probably make an infinite loop.

图片转代码服务由CSDN问答提供 功能建议

来自 http的引用 ://php.net/ob_end_clean

失败的原因首先是您在没有 活动缓冲区的情况下调用该函数,或者由于某种原因 缓冲区无法删除 (可能特殊缓冲区

这个特殊缓冲区是什么? \ n

现在,为了清理所有缓冲区,我有这样的代码

  while(@ob_end_clean()); 
   \  n 
 

但如果由于某种原因它应该遇到“特殊缓冲区”,这可能会产生无限循环。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题